officialblock 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +140 -5
  2. package/dist/official-block.cjs.js +186 -1
  3. package/dist/official-block.es.js +22627 -70
  4. package/dist/official-block.umd.js +186 -1
  5. package/dist/style.css +1 -1
  6. package/package.json +12 -2
  7. package/src/App.vue +32 -82
  8. package/src/components/ArticleList/article.vue +73 -0
  9. package/src/components/ArticleList/contact.vue +95 -0
  10. package/src/components/ArticleList/index.vue +220 -48
  11. package/src/components/ArticleList/setting.vue +407 -0
  12. package/src/components/Button/index.vue +183 -0
  13. package/src/components/HeroSlide/index.ts +1 -0
  14. package/src/components/HeroSlide/index.vue +21 -3
  15. package/src/components/HeroSlide/type.ts +19 -0
  16. package/src/components/Media/index.vue +327 -0
  17. package/src/components/Operate/index.vue +74 -0
  18. package/src/components/RichTextEditor/RichTextEditor.vue +277 -0
  19. package/src/components/RichTextEditor/index.ts +7 -0
  20. package/src/components/ThemePreview/ThemePreview.vue +462 -0
  21. package/src/components/ThemePreview/index.ts +4 -0
  22. package/src/components/index.ts +14 -0
  23. package/src/composables/useTheme.ts +205 -0
  24. package/src/index.ts +26 -8
  25. package/src/main.ts +16 -1
  26. package/src/router/index.ts +84 -0
  27. package/src/style.css +0 -1
  28. package/src/styles/editor.scss +649 -0
  29. package/src/styles/test.scss +20 -0
  30. package/src/styles/variables.scss +639 -0
  31. package/src/types.ts +8 -0
  32. package/src/utils/common.ts +13 -0
  33. package/src/utils/theme.ts +335 -0
  34. package/src/views/Layout.vue +247 -0
  35. package/src/views/NotFound.vue +114 -0
  36. package/src/views/components/ArticleListDemo.vue +167 -0
  37. package/src/views/components/HeroSlideDemo.vue +353 -0
  38. package/src/views/components/RichTextEditorDemo.vue +53 -0
  39. package/src/views/components/ThemeDemo.vue +477 -0
  40. package/src/views/guide/Installation.vue +234 -0
  41. package/src/views/guide/Introduction.vue +174 -0
  42. package/src/views/guide/QuickStart.vue +265 -0
@@ -1 +1,186 @@
1
- (function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l.OfficialBlock={},l.Vue))})(this,function(l,e){"use strict";const k={class:"content"},h=e.defineComponent({__name:"index",props:{size:{default:"medium"},disabled:{type:Boolean,default:!1},modelValue:{}},emits:["update:modelValue","change","focus"],setup(t,{emit:o}){const n=t,i=o,a=e.computed(()=>`Current value: ${n.modelValue}`);function m(){n.disabled||i("change",n.modelValue)}return(s,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["your-component",[`size-${s.size}`,{"is-disabled":s.disabled}]]),onClick:m},[e.renderSlot(s.$slots,"header",{title:a.value},void 0,!0),e.createElementVNode("div",k,[e.renderSlot(s.$slots,"default",{value:s.modelValue},()=>[e.createTextVNode(e.toDisplayString(s.modelValue),1)],!0)])],2))}}),u=(t,o)=>{const n=t.__vccOpts||t;for(const[i,a]of o)n[i]=a;return n},S=u(h,[["__scopeId","data-v-6e4f6df3"]]),r={install:t=>{t.component("ArticleList",S)}},y={class:"hero-slide"},B={class:"slide-container"},g={class:"slide-indicators"},V=["onClick"],E=u(e.defineComponent({__name:"index",setup(t){const o=e.ref(0),n=e.ref([{title:"轮播图标题 1",description:"这是第一张轮播图的描述内容"},{title:"轮播图标题 2",description:"这是第二张轮播图的描述内容"},{title:"轮播图标题 3",description:"这是第三张轮播图的描述内容"}]);let i=null;const a=_=>{o.value=_},m=()=>{o.value=(o.value+1)%n.value.length},s=()=>{i=window.setInterval(m,3e3)},f=()=>{i&&(clearInterval(i),i=null)};return e.onMounted(()=>{s()}),e.onUnmounted(()=>{f()}),(_,A)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(p,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(["slide-item",{active:o.value===c}])},[e.createElementVNode("h2",null,e.toDisplayString(p.title),1),e.createElementVNode("p",null,e.toDisplayString(p.description),1)],2))),128))]),e.createElementVNode("div",g,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(p,c)=>(e.openBlock(),e.createElementBlock("span",{key:c,class:e.normalizeClass(["indicator",{active:o.value===c}]),onClick:L=>a(c)},null,10,V))),128))])]))}}),[["__scopeId","data-v-73cbd566"]]),d={install:t=>{t.component("HeroSlide",E)}},C={install:t=>{t.component("ArticleList",r),t.component("HeroSlide",d)}};l.ArticleList=r,l.ArticleListPlugin=r,l.HeroSlide=d,l.HeroSlidePlugin=d,l.default=C,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(Ce,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],b):(Ce=typeof globalThis<"u"?globalThis:Ce||self,b(Ce.OfficialBlock={},Ce.Vue))})(this,function(Ce,b){"use strict";var Ibt=Object.defineProperty;var Lbt=(Ce,b,ve)=>b in Ce?Ibt(Ce,b,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Ce[b]=ve;var qV=(Ce,b,ve)=>Lbt(Ce,typeof b!="symbol"?b+"":b,ve);function ve(t=16){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";for(let n=0;n<t;n++)r+=e.charAt(Math.floor(Math.random()*e.length));return r}const YV={class:"button-text"},XV={class:"link-text"},$V=b.defineComponent({__name:"index",props:{type:{type:String,default:"button"},data:{type:Object,default:()=>{}}},setup(t){const e=t,r=()=>{window.open(e.data.url,"_blank")};return console.log("data=====",e.data),(n,o)=>t.type==="button"?(b.openBlock(),b.createElementBlock("div",{key:0,class:"button-primary flex-inline flex-center justify-center",onClick:r},[b.createElementVNode("span",YV,b.toDisplayString(t.data.text),1),o[0]||(o[0]=b.createElementVNode("span",{class:"button-icon"},null,-1))])):(b.openBlock(),b.createElementBlock("div",{key:1,class:"link-button flex-inline flex-center justify-center",onClick:r},[b.createElementVNode("span",XV,b.toDisplayString(t.data.text),1),o[1]||(o[1]=b.createElementVNode("span",{class:"button-icon link-icon"},null,-1))]))}}),no=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},_y=no($V,[["__scopeId","data-v-e3a7083f"]]),ZV={class:"article-item"},JV={class:"article-item-title"},QV=["innerHTML"],tz={class:"article-item-button"},ez={class:"article-item-link"},rz=no(b.defineComponent({__name:"article",props:{article:{type:Object,default:()=>{}}},setup(t){return(e,r)=>(b.openBlock(),b.createElementBlock("div",ZV,[b.createElementVNode("h4",JV,b.toDisplayString(t.article.title),1),b.createElementVNode("div",{class:"editor-content",innerHTML:t.article.content},null,8,QV),b.createElementVNode("div",tz,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.article.buttonList,n=>(b.openBlock(),b.createBlock(_y,{key:n.id,data:n},null,8,["data"]))),128))]),b.createElementVNode("div",ez,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.article.linkList,n=>(b.openBlock(),b.createBlock(_y,{key:n.id,data:n,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-7f3f4d15"]]),nz={class:"contact-item"},oz={class:"contact-item-categories"},iz={class:"contact-item-title"},az=["innerHTML"],uz={class:"contact-item-link"},sz=no(b.defineComponent({__name:"contact",props:{contact:{type:Object,default:()=>{}}},setup(t){return(e,r)=>(b.openBlock(),b.createElementBlock("div",nz,[b.createElementVNode("div",oz,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.contact.categories,n=>(b.openBlock(),b.createElementBlock("p",{class:"categories",key:n.id},b.toDisplayString(n.text),1))),128))]),b.createElementVNode("h4",iz,b.toDisplayString(t.contact.title),1),b.createElementVNode("div",{class:"editor-content",innerHTML:t.contact.content},null,8,az),b.createElementVNode("div",uz,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.contact.linkList,n=>(b.openBlock(),b.createBlock(_y,{key:n.id,data:n,type:"link"},null,8,["data"]))),128))])]))}}),[["__scopeId","data-v-e9c9c007"]]),lz={key:0,class:"image-container"},cz={key:0,class:"image-desc"},fz={key:1,class:"video-container flex-inline flex-center justify-center"},dz=["src"],pz={class:"video-thumbnail flex flex-center justify-center"},hz=["src"],gz={key:2,class:"image-list-container"},vz={key:0,class:"image-preview"},mz={class:"image-list-wrapper"},yz=["src","onClick"],bz=no(b.defineComponent({__name:"index",props:{type:{type:String,default:"Image"},data:{type:Object,default:()=>{}},preview:{type:Boolean,default:!0}},setup(t){var v,h,m;const e=t,r=b.ref(),n=b.ref(!1),o=()=>{var y;(y=r.value)==null||y.play(),n.value=!0},i=b.ref(((m=(h=(v=e.data)==null?void 0:v.imageList)==null?void 0:h[0])==null?void 0:m.src)||""),a=y=>{i.value=y},u=b.ref(null),s=b.ref(!1),l=b.ref(!1),c=()=>{const y=u.value;y&&(s.value=y.scrollLeft>0,l.value=y.scrollLeft+y.clientWidth<y.scrollWidth)},f=()=>{const y=u.value;y&&y.scrollBy({left:-y.clientWidth/1.5,behavior:"smooth"})},d=()=>{const y=u.value;y&&y.scrollBy({left:y.clientWidth/1.5,behavior:"smooth"})},p=()=>{c()};return b.watch(()=>{var y;return(y=e.data)==null?void 0:y.imageList},async()=>{await b.nextTick(),c()}),b.onMounted(()=>{window.addEventListener("resize",c),b.nextTick(c)}),b.onUnmounted(()=>{window.removeEventListener("resize",c)}),(y,g)=>{const w=b.resolveComponent("a-image"),E=b.resolveComponent("icon-caret-right");return b.openBlock(),b.createElementBlock(b.Fragment,null,[t.type==="Image"?(b.openBlock(),b.createElementBlock("div",lz,[b.createVNode(w,{class:"image",src:t.data.imgSrc,preview:t.preview,alt:t.data.alt,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview","alt"]),t.data.caption?(b.openBlock(),b.createElementBlock("p",cz,b.toDisplayString(t.data.caption),1)):b.createCommentVNode("",!0)])):b.createCommentVNode("",!0),t.type==="Video"?(b.openBlock(),b.createElementBlock("div",fz,[b.createElementVNode("video",{class:"video",ref_key:"videoElement",ref:r,src:t.data.videoSrc,controls:""},null,8,dz),n.value?b.createCommentVNode("",!0):(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[b.createElementVNode("div",pz,[b.createElementVNode("img",{src:t.data.imgSrc},null,8,hz)]),b.createElementVNode("div",{class:"play-button flex flex-center justify-center",onClick:o},[b.createVNode(E,{style:{color:"#fff"}})])],64))])):b.createCommentVNode("",!0),t.type==="ImageList"?(b.openBlock(),b.createElementBlock("div",gz,[i.value?(b.openBlock(),b.createElementBlock("div",vz,[b.createVNode(w,{class:"image",src:i.value,preview:t.preview,fit:"contain",width:"100%",height:"100%"},null,8,["src","preview"])])):b.createCommentVNode("",!0),b.createElementVNode("div",mz,[b.withDirectives(b.createElementVNode("div",{class:"thumbnail__nav__prev",onClick:f}," ‹ ",512),[[b.vShow,s.value]]),b.createElementVNode("div",{class:"image-list",ref_key:"imageListRef",ref:u,onScroll:p},[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.data.imageList,x=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:x.id},[x.src?(b.openBlock(),b.createElementBlock("img",{key:0,class:"image",src:x.src,onClick:D=>a(x.src)},null,8,yz)):b.createCommentVNode("",!0)],64))),128))],544),b.withDirectives(b.createElementVNode("div",{class:"thumbnail__nav__next",onClick:d}," › ",512),[[b.vShow,l.value]])])])):b.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-07c1a741"]]);var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wz(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ma(t){var e={exports:{}};return t(e,e.exports),e.exports}var yi,ph,hh=function(t){return t&&t.Math==Math&&t},Ot=hh(typeof globalThis=="object"&&globalThis)||hh(typeof window=="object"&&window)||hh(typeof self=="object"&&self)||hh(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")(),Fy=Function.prototype,X8=Fy.apply,Ez=Fy.bind,$8=Fy.call,Z8=typeof Reflect=="object"&&Reflect.apply||(Ez?$8.bind(X8):function(){return $8.apply(X8,arguments)}),J8=Function.prototype,Ty=J8.bind,Py=J8.call,Cz=Ty&&Ty.bind(Py),de=Ty?function(t){return t&&Cz(Py,t)}:function(t){return t&&function(){return Py.apply(t,arguments)}},pr=function(t){return typeof t=="function"},Lr=function(t){try{return!!t()}catch{return!0}},Rr=!Lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bc=Function.prototype.call,Zr=bc.bind?bc.bind(bc):function(){return bc.apply(bc,arguments)},Q8={}.propertyIsEnumerable,tS=Object.getOwnPropertyDescriptor,xz=tS&&!Q8.call({1:2},1)?function(t){var e=tS(this,t);return!!e&&e.enumerable}:Q8,Ny={f:xz},Ln=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Sz=de({}.toString),Dz=de("".slice),Va=function(t){return Dz(Sz(t),8,-1)},jy=Ot.Object,Az=de("".split),eS=Lr(function(){return!jy("z").propertyIsEnumerable(0)})?function(t){return Va(t)=="String"?Az(t,""):jy(t)}:jy,Oz=Ot.TypeError,Iy=function(t){if(t==null)throw Oz("Can't call method on "+t);return t},oo=function(t){return eS(Iy(t))},gn=function(t){return typeof t=="object"?t!==null:pr(t)},Jr={},rS=function(t){return pr(t)?t:void 0},vs=function(t,e){return arguments.length<2?rS(Jr[t])||rS(Ot[t]):Jr[t]&&Jr[t][e]||Ot[t]&&Ot[t][e]},wc=de({}.isPrototypeOf),Ly=vs("navigator","userAgent")||"",nS=Ot.process,oS=Ot.Deno,iS=nS&&nS.versions||oS&&oS.version,aS=iS&&iS.v8;aS&&(ph=(yi=aS.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!ph&&Ly&&(!(yi=Ly.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=Ly.match(/Chrome\/(\d+)/))&&(ph=+yi[1]);var gh,vh=ph,io=!!Object.getOwnPropertySymbols&&!Lr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vh&&vh<41}),Ry=io&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kz=Ot.Object,ms=Ry?function(t){return typeof t=="symbol"}:function(t){var e=vs("Symbol");return pr(e)&&wc(e.prototype,kz(t))},Bz=Ot.String,My=function(t){try{return Bz(t)}catch{return"Object"}},_z=Ot.TypeError,Vy=function(t){if(pr(t))return t;throw _z(My(t)+" is not a function")},mh=function(t,e){var r=t[e];return r==null?void 0:Vy(r)},Fz=Ot.TypeError,Tz=Object.defineProperty,bi=Ot["__core-js_shared__"]||function(t,e){try{Tz(Ot,t,{value:e,configurable:!0,writable:!0})}catch{Ot[t]=e}return e}("__core-js_shared__",{}),za=Ma(function(t){(t.exports=function(e,r){return bi[e]||(bi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Pz=Ot.Object,Ec=function(t){return Pz(Iy(t))},Nz=de({}.hasOwnProperty),Ht=Object.hasOwn||function(t,e){return Nz(Ec(t),e)},jz=0,Iz=Math.random(),Lz=de(1 .toString),yh=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Lz(++jz+Iz,36)},Cc=za("wks"),Ha=Ot.Symbol,uS=Ha&&Ha.for,Rz=Ry?Ha:Ha&&Ha.withoutSetter||yh,mr=function(t){if(!Ht(Cc,t)||!io&&typeof Cc[t]!="string"){var e="Symbol."+t;io&&Ht(Ha,t)?Cc[t]=Ha[t]:Cc[t]=Ry&&uS?uS(e):Rz(e)}return Cc[t]},Mz=Ot.TypeError,Vz=mr("toPrimitive"),zz=function(t,e){if(!gn(t)||ms(t))return t;var r,n=mh(t,Vz);if(n){if(r=Zr(n,t,e),!gn(r)||ms(r))return r;throw Mz("Can't convert object to primitive value")}return function(o,i){var a,u;if(pr(a=o.toString)&&!gn(u=Zr(a,o))||pr(a=o.valueOf)&&!gn(u=Zr(a,o)))return u;throw Fz("Can't convert object to primitive value")}(t)},ys=function(t){var e=zz(t,"string");return ms(e)?e:e+""},zy=Ot.document,Hz=gn(zy)&&gn(zy.createElement),sS=function(t){return Hz?zy.createElement(t):{}},lS=!Rr&&!Lr(function(){return Object.defineProperty(sS("div"),"a",{get:function(){return 7}}).a!=7}),cS=Object.getOwnPropertyDescriptor,Uz=Rr?cS:function(t,e){if(t=oo(t),e=ys(e),lS)try{return cS(t,e)}catch{}if(Ht(t,e))return Ln(!Zr(Ny.f,t,e),t[e])},bh={f:Uz},Wz=/#|\.prototype\./,xc=function(t,e){var r=qz[Gz(t)];return r==Yz||r!=Kz&&(pr(e)?Lr(e):!!e)},Gz=xc.normalize=function(t){return String(t).replace(Wz,".").toLowerCase()},qz=xc.data={},Kz=xc.NATIVE="N",Yz=xc.POLYFILL="P",Xz=xc,fS=de(de.bind),Hy=function(t,e){return Vy(t),e===void 0?t:fS?fS(t,e):function(){return t.apply(e,arguments)}},$z=Ot.String,Zz=Ot.TypeError,Qr=function(t){if(gn(t))return t;throw Zz($z(t)+" is not an object")},Jz=Ot.TypeError,dS=Object.defineProperty,Qz=Rr?dS:function(t,e,r){if(Qr(t),e=ys(e),Qr(r),lS)try{return dS(t,e,r)}catch{}if("get"in r||"set"in r)throw Jz("Accessors not supported");return"value"in r&&(t[e]=r.value),t},wi={f:Qz},Fr=Rr?function(t,e,r){return wi.f(t,e,Ln(1,r))}:function(t,e,r){return t[e]=r,t},tH=bh.f,eH=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return Z8(t,this,arguments)};return e.prototype=t.prototype,e},Vo=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Ot:d?Ot[c]:(Ot[c]||{}).prototype,h=f?Jr:Jr[c]||Fr(Jr,c,{})[c],m=h.prototype;for(o in e)r=!Xz(f?o:c+(d?".":"#")+o,t.forced)&&v&&Ht(v,o),a=h[o],r&&(u=t.noTargetGet?(l=tH(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?Hy(i,Ot):t.wrap&&r?eH(i):p&&pr(i)?de(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Fr(s,"sham",!0),Fr(h,o,s),p&&(Ht(Jr,n=c+"Prototype")||Fr(Jr,n,{}),Fr(Jr[n],o,i),t.real&&m&&!m[o]&&Fr(m,o,i)))},pS=za("keys"),wh=function(t){return pS[t]||(pS[t]=yh(t))},rH=!Lr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),hS=wh("IE_PROTO"),Uy=Ot.Object,nH=Uy.prototype,Eh=rH?Uy.getPrototypeOf:function(t){var e=Ec(t);if(Ht(e,hS))return e[hS];var r=e.constructor;return pr(r)&&e instanceof r?r.prototype:e instanceof Uy?nH:null},oH=Ot.String,iH=Ot.TypeError,Ch=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=de(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Qr(n),function(i){if(typeof i=="object"||pr(i))return i;throw iH("Can't set "+oH(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),aH=Math.ceil,uH=Math.floor,Wy=function(t){var e=+t;return e!=e||e===0?0:(e>0?uH:aH)(e)},sH=Math.max,lH=Math.min,Gy=function(t,e){var r=Wy(t);return r<0?sH(r+e,0):lH(r,e)},cH=Math.min,Sc=function(t){return(e=t.length)>0?cH(Wy(e),9007199254740991):0;var e},fH=function(t){return function(e,r,n){var o,i=oo(e),a=Sc(i),u=Gy(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},dH={indexOf:fH(!1)},Dc={},pH=dH.indexOf,gS=de([].push),vS=function(t,e){var r,n=oo(t),o=0,i=[];for(r in n)!Ht(Dc,r)&&Ht(n,r)&&gS(i,r);for(;e.length>o;)Ht(n,r=e[o++])&&(~pH(i,r)||gS(i,r));return i},xh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hH=xh.concat("length","prototype"),gH=Object.getOwnPropertyNames||function(t){return vS(t,hH)},qy={f:gH},Sh={f:Object.getOwnPropertySymbols},vH=de([].concat),mH=vs("Reflect","ownKeys")||function(t){var e=qy.f(Qr(t)),r=Sh.f;return r?vH(e,r(t)):e},Ky=Object.keys||function(t){return vS(t,xh)},yH=Rr?Object.defineProperties:function(t,e){Qr(t);for(var r,n=oo(e),o=Ky(e),i=o.length,a=0;i>a;)wi.f(t,r=o[a++],n[r]);return t},bH=vs("document","documentElement"),mS=wh("IE_PROTO"),Yy=function(){},yS=function(t){return"<script>"+t+"<\/script>"},bS=function(t){t.write(yS("")),t.close();var e=t.parentWindow.Object;return t=null,e},Dh=function(){try{gh=new ActiveXObject("htmlfile")}catch{}var t,e;Dh=typeof document<"u"?document.domain&&gh?bS(gh):((e=sS("iframe")).style.display="none",bH.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(yS("document.F=Object")),t.close(),t.F):bS(gh);for(var r=xh.length;r--;)delete Dh.prototype[xh[r]];return Dh()};Dc[mS]=!0;var zo=Object.create||function(t,e){var r;return t!==null?(Yy.prototype=Qr(t),r=new Yy,Yy.prototype=null,r[mS]=t):r=Dh(),e===void 0?r:yH(r,e)},Xy=function(t,e,r){var n=ys(e);n in t?wi.f(t,n,Ln(0,r)):t[n]=r},wH=Ot.Array,EH=Math.max,wS=function(t,e,r){for(var n=Sc(t),o=Gy(e,n),i=Gy(n,n),a=wH(EH(i-o,0)),u=0;o<i;o++,u++)Xy(a,u,t[o]);return a.length=u,a},CH=de("".replace),xH=de("".split),SH=de([].join),$y=String(Error("zxcasd").stack),ES=/\n\s*at [^:]*:[^\n]*/,DH=ES.test($y),AH=/@[^\n]*\n/.test($y)&&!/zxcasd/.test($y),OH=function(t,e){if(typeof t!="string")return t;if(DH)for(;e--;)t=CH(t,ES,"");else if(AH)return SH(wS(xH(t,`
2
+ `),e),`
3
+ `);return t},kH=function(t,e){gn(e)&&"cause"in e&&Fr(t,"cause",e.cause)},Ho={},BH=mr("iterator"),_H=Array.prototype,CS={};CS[mr("toStringTag")]="z";var Zy=String(CS)==="[object z]",FH=mr("toStringTag"),TH=Ot.Object,PH=Va(function(){return arguments}())=="Arguments",Ac=Zy?Va:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=TH(t),FH))=="string"?r:PH?Va(e):(n=Va(e))=="Object"&&pr(e.callee)?"Arguments":n},NH=mr("iterator"),xS=function(t){if(t!=null)return mh(t,NH)||mh(t,"@@iterator")||Ho[Ac(t)]},jH=Ot.TypeError,SS=function(t,e,r){var n,o;Qr(t);try{if(!(n=mh(t,"return"))){if(e==="throw")throw r;return r}n=Zr(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Qr(n),r},IH=Ot.TypeError,Ah=function(t,e){this.stopped=t,this.result=e},DS=Ah.prototype,LH=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Hy(e,c),h=function(y){return n&&SS(n,"normal",y),new Ah(!0,y)},m=function(y){return f?(Qr(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(d)n=t;else{if(!(o=xS(t)))throw IH(My(t)+" is not iterable");if(function(y){return y!==void 0&&(Ho.Array===y||_H[BH]===y)}(o)){for(i=0,a=Sc(t);a>i;i++)if((u=m(t[i]))&&wc(DS,u))return u;return new Ah(!1)}n=function(y,g){var w=arguments.length<2?xS(y):g;if(Vy(w))return Qr(Zr(w,y));throw jH(My(y)+" is not iterable")}(t,o)}for(s=n.next;!(l=Zr(s,n)).done;){try{u=m(l.value)}catch(y){SS(n,"throw",y)}if(typeof u=="object"&&u&&wc(DS,u))return u}return new Ah(!1)},RH=Ot.String,Oc=function(t){if(Ac(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return RH(t)},MH=function(t,e){return t===void 0?arguments.length<2?"":e:Oc(t)},VH=!Lr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Ln(1,7)),t.stack!==7)}),zH=mr("toStringTag"),Oh=Ot.Error,HH=[].push,kc=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=wc(Jy,this);Ch?r=Ch(new Oh(void 0),o?Eh(this):Jy):(r=o?this:zo(Jy),Fr(r,zH,"Error")),Fr(r,"message",MH(e,"")),VH&&Fr(r,"stack",OH(r.stack,1)),kH(r,n);var i=[];return LH(t,HH,{that:i}),Fr(r,"errors",i),r};Ch?Ch(kc,Oh):function(t,e){for(var r=mH(e),n=wi.f,o=bh.f,i=0;i<r.length;i++){var a=r[i];Ht(t,a)||n(t,a,o(e,a))}}(kc,Oh);var Jy=kc.prototype=zo(Oh.prototype,{constructor:Ln(1,kc),message:Ln(1,""),name:Ln(1,"AggregateError")});Vo({global:!0},{AggregateError:kc});var UH=de(Function.toString);pr(bi.inspectSource)||(bi.inspectSource=function(t){return UH(t)});var kh,Bc,Bh,AS=bi.inspectSource,OS=Ot.WeakMap,WH=pr(OS)&&/native code/.test(AS(OS)),Qy=Ot.TypeError,GH=Ot.WeakMap;if(WH||bi.state){var Ua=bi.state||(bi.state=new GH),qH=de(Ua.get),kS=de(Ua.has),KH=de(Ua.set);kh=function(t,e){if(kS(Ua,t))throw new Qy("Object already initialized");return e.facade=t,KH(Ua,t,e),e},Bc=function(t){return qH(Ua,t)||{}},Bh=function(t){return kS(Ua,t)}}else{var bs=wh("state");Dc[bs]=!0,kh=function(t,e){if(Ht(t,bs))throw new Qy("Object already initialized");return e.facade=t,Fr(t,bs,e),e},Bc=function(t){return Ht(t,bs)?t[bs]:{}},Bh=function(t){return Ht(t,bs)}}var Ei,BS,_S,ws={set:kh,get:Bc,has:Bh,enforce:function(t){return Bh(t)?Bc(t):kh(t,{})},getterFor:function(t){return function(e){var r;if(!gn(e)||(r=Bc(e)).type!==t)throw Qy("Incompatible receiver, "+t+" required");return r}}},FS=Function.prototype,YH=Rr&&Object.getOwnPropertyDescriptor,TS=Ht(FS,"name"),XH={PROPER:TS&&(function(){}).name==="something",CONFIGURABLE:TS&&(!Rr||Rr&&YH(FS,"name").configurable)},_h=function(t,e,r,n){Fr(t,e,r)},t1=mr("iterator"),PS=!1;[].keys&&("next"in(_S=[].keys())?(BS=Eh(Eh(_S)))!==Object.prototype&&(Ei=BS):PS=!0);var $H=Ei==null||Lr(function(){var t={};return Ei[t1].call(t)!==t});Ei=$H?{}:zo(Ei),pr(Ei[t1])||_h(Ei,t1,function(){return this});var NS={IteratorPrototype:Ei,BUGGY_SAFARI_ITERATORS:PS},ZH=Zy?{}.toString:function(){return"[object "+Ac(this)+"]"},JH=wi.f,jS=mr("toStringTag"),Fh=function(t,e,r,n){if(t){var o=r?t:t.prototype;Ht(o,jS)||JH(o,jS,{configurable:!0,value:e}),n&&!Zy&&Fr(o,"toString",ZH)}},QH=NS.IteratorPrototype,tU=function(){return this},eU=XH.PROPER,e1=NS.BUGGY_SAFARI_ITERATORS,rU=mr("iterator"),nU=function(){return this},IS=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=zo(QH,{next:Ln(1,g)}),Fh(m,E,!1,!0),Ho[E]=tU})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!e1&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[rU]||d["@@iterator"]||o&&d[o],v=!e1&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Eh(h.call(new t)))!==Object.prototype&&u.next&&(Fh(u,c,!0,!0),Ho[c]=nU),eU&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Zr(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Vo({target:e,proto:!0,forced:e1||f},s)),Ho[e]=v,s},oU=ws.set,iU=ws.getterFor("Array Iterator");IS(Array,"Array",function(t,e){oU(this,{type:"Array Iterator",target:oo(t),index:0,kind:e})},function(){var t=iU(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),Ho.Arguments=Ho.Array;var aU=de("".charAt),LS=de("".charCodeAt),uU=de("".slice),sU=function(t){return function(e,r){var n,o,i=Oc(Iy(e)),a=Wy(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=LS(i,a))<55296||n>56319||a+1===u||(o=LS(i,a+1))<56320||o>57343?t?aU(i,a):n:t?uU(i,a,a+2):o-56320+(n-55296<<10)+65536}},lU={charAt:sU(!0)}.charAt,cU=ws.set,fU=ws.getterFor("String Iterator");IS(String,"String",function(t){cU(this,{type:"String Iterator",string:Oc(t),index:0})},function(){var t,e=fU(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=lU(r,n),e.index+=t.length,{value:t,done:!1})});var dU=Jr.AggregateError,RS=mr("toStringTag");for(var r1 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var MS=Ot[r1],n1=MS&&MS.prototype;n1&&Ac(n1)!==RS&&Fr(n1,RS,r1),Ho[r1]=Ho.Array}var Ci,Th,pU=dU,Ph=function(t){return t&&t.Math==Math&&t},Ct=Ph(typeof globalThis=="object"&&globalThis)||Ph(typeof window=="object"&&window)||Ph(typeof self=="object"&&self)||Ph(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")(),or=function(t){try{return!!t()}catch{return!0}},ao=!or(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),_c=Function.prototype.call,hr=_c.bind?_c.bind(_c):function(){return _c.apply(_c,arguments)},VS={}.propertyIsEnumerable,zS=Object.getOwnPropertyDescriptor,hU=zS&&!VS.call({1:2},1)?function(t){var e=zS(this,t);return!!e&&e.enumerable}:VS,gU={f:hU},xi=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},HS=Function.prototype,o1=HS.bind,i1=HS.call,vU=o1&&o1.bind(i1),ne=o1?function(t){return t&&vU(i1,t)}:function(t){return t&&function(){return i1.apply(t,arguments)}},mU=ne({}.toString),yU=ne("".slice),Wa=function(t){return yU(mU(t),8,-1)},a1=Ct.Object,bU=ne("".split),US=or(function(){return!a1("z").propertyIsEnumerable(0)})?function(t){return Wa(t)=="String"?bU(t,""):a1(t)}:a1,wU=Ct.TypeError,Nh=function(t){if(t==null)throw wU("Can't call method on "+t);return t},Es=function(t){return US(Nh(t))},Je=function(t){return typeof t=="function"},uo=function(t){return typeof t=="object"?t!==null:Je(t)},EU=function(t){return Je(t)?t:void 0},Fc=function(t,e){return arguments.length<2?EU(Ct[t]):Ct[t]&&Ct[t][e]},jh=ne({}.isPrototypeOf),u1=Fc("navigator","userAgent")||"",WS=Ct.process,GS=Ct.Deno,qS=WS&&WS.versions||GS&&GS.version,KS=qS&&qS.v8;KS&&(Th=(Ci=KS.split("."))[0]>0&&Ci[0]<4?1:+(Ci[0]+Ci[1])),!Th&&u1&&(!(Ci=u1.match(/Edge\/(\d+)/))||Ci[1]>=74)&&(Ci=u1.match(/Chrome\/(\d+)/))&&(Th=+Ci[1]);var YS=Th,s1=!!Object.getOwnPropertySymbols&&!or(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&YS&&YS<41}),l1=s1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",CU=Ct.Object,c1=l1?function(t){return typeof t=="symbol"}:function(t){var e=Fc("Symbol");return Je(e)&&jh(e.prototype,CU(t))},xU=Ct.String,f1=function(t){try{return xU(t)}catch{return"Object"}},SU=Ct.TypeError,d1=function(t){if(Je(t))return t;throw SU(f1(t)+" is not a function")},Tc=function(t,e){var r=t[e];return r==null?void 0:d1(r)},DU=Ct.TypeError,AU=Object.defineProperty,p1=function(t,e){try{AU(Ct,t,{value:e,configurable:!0,writable:!0})}catch{Ct[t]=e}return e},Si=Ct["__core-js_shared__"]||p1("__core-js_shared__",{}),h1=Ma(function(t){(t.exports=function(e,r){return Si[e]||(Si[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),OU=Ct.Object,g1=function(t){return OU(Nh(t))},kU=ne({}.hasOwnProperty),Mr=Object.hasOwn||function(t,e){return kU(g1(t),e)},BU=0,_U=Math.random(),FU=ne(1 .toString),XS=function(t){return"Symbol("+(t===void 0?"":t)+")_"+FU(++BU+_U,36)},Pc=h1("wks"),Ga=Ct.Symbol,$S=Ga&&Ga.for,TU=l1?Ga:Ga&&Ga.withoutSetter||XS,Tr=function(t){if(!Mr(Pc,t)||!s1&&typeof Pc[t]!="string"){var e="Symbol."+t;s1&&Mr(Ga,t)?Pc[t]=Ga[t]:Pc[t]=l1&&$S?$S(e):TU(e)}return Pc[t]},PU=Ct.TypeError,NU=Tr("toPrimitive"),jU=function(t,e){if(!uo(t)||c1(t))return t;var r,n=Tc(t,NU);if(n){if(r=hr(n,t,e),!uo(r)||c1(r))return r;throw PU("Can't convert object to primitive value")}return function(o,i){var a,u;if(Je(a=o.toString)&&!uo(u=hr(a,o))||Je(a=o.valueOf)&&!uo(u=hr(a,o)))return u;throw DU("Can't convert object to primitive value")}(t)},v1=function(t){var e=jU(t,"string");return c1(e)?e:e+""},m1=Ct.document,IU=uo(m1)&&uo(m1.createElement),y1=function(t){return IU?m1.createElement(t):{}},ZS=!ao&&!or(function(){return Object.defineProperty(y1("div"),"a",{get:function(){return 7}}).a!=7}),JS=Object.getOwnPropertyDescriptor,LU=ao?JS:function(t,e){if(t=Es(t),e=v1(e),ZS)try{return JS(t,e)}catch{}if(Mr(t,e))return xi(!hr(gU.f,t,e),t[e])},b1={f:LU},RU=Ct.String,MU=Ct.TypeError,tn=function(t){if(uo(t))return t;throw MU(RU(t)+" is not an object")},VU=Ct.TypeError,QS=Object.defineProperty,zU=ao?QS:function(t,e,r){if(tn(t),e=v1(e),tn(r),ZS)try{return QS(t,e,r)}catch{}if("get"in r||"set"in r)throw VU("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Cs={f:zU},Vr=ao?function(t,e,r){return Cs.f(t,e,xi(1,r))}:function(t,e,r){return t[e]=r,t},HU=ne(Function.toString);Je(Si.inspectSource)||(Si.inspectSource=function(t){return HU(t)});var Ih,Nc,Lh,w1=Si.inspectSource,tD=Ct.WeakMap,UU=Je(tD)&&/native code/.test(w1(tD)),eD=h1("keys"),E1=function(t){return eD[t]||(eD[t]=XS(t))},C1={},x1=Ct.TypeError,WU=Ct.WeakMap;if(UU||Si.state){var qa=Si.state||(Si.state=new WU),GU=ne(qa.get),rD=ne(qa.has),qU=ne(qa.set);Ih=function(t,e){if(rD(qa,t))throw new x1("Object already initialized");return e.facade=t,qU(qa,t,e),e},Nc=function(t){return GU(qa,t)||{}},Lh=function(t){return rD(qa,t)}}else{var xs=E1("state");C1[xs]=!0,Ih=function(t,e){if(Mr(t,xs))throw new x1("Object already initialized");return e.facade=t,Vr(t,xs,e),e},Nc=function(t){return Mr(t,xs)?t[xs]:{}},Lh=function(t){return Mr(t,xs)}}var Ka={set:Ih,get:Nc,has:Lh,enforce:function(t){return Lh(t)?Nc(t):Ih(t,{})},getterFor:function(t){return function(e){var r;if(!uo(e)||(r=Nc(e)).type!==t)throw x1("Incompatible receiver, "+t+" required");return r}}},nD=Function.prototype,KU=ao&&Object.getOwnPropertyDescriptor,oD=Mr(nD,"name"),S1={PROPER:oD&&(function(){}).name==="something",CONFIGURABLE:oD&&(!ao||ao&&KU(nD,"name").configurable)},Ya=Ma(function(t){var e=S1.CONFIGURABLE,r=Ka.get,n=Ka.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Je(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mr(u,"name")||e&&u.name!==p)&&Vr(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ct?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Vr(i,a,u)):f?i[a]=u:p1(a,u)})(Function.prototype,"toString",function(){return Je(this)&&r(this).source||w1(this)})}),YU=Math.ceil,XU=Math.floor,D1=function(t){var e=+t;return e!=e||e===0?0:(e>0?XU:YU)(e)},$U=Math.max,ZU=Math.min,A1=function(t,e){var r=D1(t);return r<0?$U(r+e,0):ZU(r,e)},JU=Math.min,iD=function(t){return t>0?JU(D1(t),9007199254740991):0},Rh=function(t){return iD(t.length)},QU=function(t){return function(e,r,n){var o,i=Es(e),a=Rh(i),u=A1(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},tW={indexOf:QU(!1)}.indexOf,aD=ne([].push),uD=function(t,e){var r,n=Es(t),o=0,i=[];for(r in n)!Mr(C1,r)&&Mr(n,r)&&aD(i,r);for(;e.length>o;)Mr(n,r=e[o++])&&(~tW(i,r)||aD(i,r));return i},Mh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eW=Mh.concat("length","prototype"),rW=Object.getOwnPropertyNames||function(t){return uD(t,eW)},nW={f:rW},oW={f:Object.getOwnPropertySymbols},iW=ne([].concat),aW=Fc("Reflect","ownKeys")||function(t){var e=nW.f(tn(t)),r=oW.f;return r?iW(e,r(t)):e},sD=function(t,e){for(var r=aW(e),n=Cs.f,o=b1.f,i=0;i<r.length;i++){var a=r[i];Mr(t,a)||n(t,a,o(e,a))}},uW=/#|\.prototype\./,jc=function(t,e){var r=lW[sW(t)];return r==fW||r!=cW&&(Je(e)?or(e):!!e)},sW=jc.normalize=function(t){return String(t).replace(uW,".").toLowerCase()},lW=jc.data={},cW=jc.NATIVE="N",fW=jc.POLYFILL="P",dW=jc,pW=b1.f,Ic=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Ct:l?Ct[u]||p1(u,{}):(Ct[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=pW(r,n))&&a.value:r[n],!dW(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;sD(i,o)}(t.sham||o&&o.sham)&&Vr(i,"sham",!0),Ya(r,n,i,t)}},lD={};lD[Tr("toStringTag")]="z";var Vh,O1=String(lD)==="[object z]",hW=Tr("toStringTag"),gW=Ct.Object,vW=Wa(function(){return arguments}())=="Arguments",zh=O1?Wa:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=gW(t),hW))=="string"?r:vW?Wa(e):(n=Wa(e))=="Object"&&Je(e.callee)?"Arguments":n},mW=Ct.String,Xa=function(t){if(zh(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mW(t)},yW=function(){var t=tn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},k1=Ct.RegExp,cD=or(function(){var t=k1("a","y");return t.lastIndex=2,t.exec("abcd")!=null});cD||or(function(){return!k1("a","y").sticky});var bW=cD||or(function(){var t=k1("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),wW={BROKEN_CARET:bW},EW=Object.keys||function(t){return uD(t,Mh)},CW=ao?Object.defineProperties:function(t,e){tn(t);for(var r,n=Es(e),o=EW(e),i=o.length,a=0;i>a;)Cs.f(t,r=o[a++],n[r]);return t},xW=Fc("document","documentElement"),fD=E1("IE_PROTO"),B1=function(){},dD=function(t){return"<script>"+t+"<\/script>"},pD=function(t){t.write(dD("")),t.close();var e=t.parentWindow.Object;return t=null,e},Hh=function(){try{Vh=new ActiveXObject("htmlfile")}catch{}var t,e;Hh=typeof document<"u"?document.domain&&Vh?pD(Vh):((e=y1("iframe")).style.display="none",xW.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(dD("document.F=Object")),t.close(),t.F):pD(Vh);for(var r=Mh.length;r--;)delete Hh.prototype[Mh[r]];return Hh()};C1[fD]=!0;var hD,_1,Lc=Object.create||function(t,e){var r;return t!==null?(B1.prototype=tn(t),r=new B1,B1.prototype=null,r[fD]=t):r=Hh(),e===void 0?r:CW(r,e)},SW=Ct.RegExp,DW=or(function(){var t=SW(".","s");return!(t.dotAll&&t.exec(`
4
+ `)&&t.flags==="s")}),AW=Ct.RegExp,OW=or(function(){var t=AW("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),kW=Ka.get,BW=h1("native-string-replace",String.prototype.replace),Uh=RegExp.prototype.exec,F1=Uh,_W=ne("".charAt),FW=ne("".indexOf),TW=ne("".replace),T1=ne("".slice),P1=(_1=/b*/g,hr(Uh,hD=/a/,"a"),hr(Uh,_1,"a"),hD.lastIndex!==0||_1.lastIndex!==0),gD=wW.BROKEN_CARET,N1=/()??/.exec("")[1]!==void 0;(P1||N1||gD||DW||OW)&&(F1=function(t){var e,r,n,o,i,a,u,s=this,l=kW(s),c=Xa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=hr(F1,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=gD&&s.sticky,v=hr(yW,s),h=s.source,m=0,y=c;if(p&&(v=TW(v,"y",""),FW(v,"g")===-1&&(v+="g"),y=T1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&_W(c,s.lastIndex-1)!==`
5
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),N1&&(r=new RegExp("^"+h+"$(?!\\s)",v)),P1&&(n=s.lastIndex),o=hr(Uh,p?r:s,y),p?o?(o.input=T1(o.input,m),o[0]=T1(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:P1&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),N1&&o&&o.length>1&&hr(BW,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Lc(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Wh=F1;Ic({target:"RegExp",proto:!0,forced:/./.exec!==Wh},{exec:Wh});var PW=Tr("species"),vD=RegExp.prototype,NW=ne("".charAt),mD=ne("".charCodeAt),jW=ne("".slice),IW=function(t){return function(e,r){var n,o,i=Xa(Nh(e)),a=D1(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=mD(i,a))<55296||n>56319||a+1===u||(o=mD(i,a+1))<56320||o>57343?t?NW(i,a):n:t?jW(i,a,a+2):o-56320+(n-55296<<10)+65536}},yD={charAt:IW(!0)},LW=yD.charAt,RW=function(t,e,r){return e+(r?LW(t,e).length:1)},MW=Ct.TypeError,bD=function(t,e){var r=t.exec;if(Je(r)){var n=hr(r,t,e);return n!==null&&tn(n),n}if(Wa(t)==="RegExp")return hr(Wh,t,e);throw MW("RegExp#exec called on incompatible receiver")};(function(t,e,r,n){var o=Tr(t),i=!or(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!or(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[PW]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=ne(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=ne(l),h=c.exec;return h===Wh||h===vD.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ya(String.prototype,t,s[0]),Ya(vD,o,s[1])}})("match",function(t,e,r){return[function(n){var o=Nh(this),i=n==null?void 0:Tc(n,t);return i?hr(i,n,o):new RegExp(n)[t](Xa(o))},function(n){var o=tn(this),i=Xa(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return bD(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=bD(o,i))!==null;){var f=Xa(s[0]);l[c]=f,f===""&&(o.lastIndex=RW(i,iD(o.lastIndex),u)),c++}return c===0?null:l}]}),Ic({global:!0},{globalThis:Ct});var VW=!or(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),wD=E1("IE_PROTO"),j1=Ct.Object,zW=j1.prototype,Rc=VW?j1.getPrototypeOf:function(t){var e=g1(t);if(Mr(e,wD))return e[wD];var r=e.constructor;return Je(r)&&e instanceof r?r.prototype:e instanceof j1?zW:null},HW=Ct.String,UW=Ct.TypeError,Ss=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return tn(n),function(i){if(typeof i=="object"||Je(i))return i;throw UW("Can't set "+HW(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),WW=Ct.Array,GW=Math.max,qW=ne("".replace),KW=ne("".split),YW=ne([].join),I1=String(Error("zxcasd").stack),ED=/\n\s*at [^:]*:[^\n]*/,XW=ED.test(I1),$W=/@[^\n]*\n/.test(I1)&&!/zxcasd/.test(I1),ZW=function(t,e){if(typeof t!="string")return t;if(XW)for(;e--;)t=qW(t,ED,"");else if($W)return YW(function(r,n,o){for(var i,a,u,s,l=Rh(r),c=A1(n,l),f=A1(l,l),d=WW(GW(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],s=void 0,(s=v1(a))in i?Cs.f(i,s,xi(0,u)):i[s]=u;return d.length=p,d}(KW(t,`
6
+ `),e),`
7
+ `);return t},JW=function(t,e){uo(e)&&"cause"in e&&Vr(t,"cause",e.cause)},CD=ne(ne.bind),xD=function(t,e){return d1(t),e===void 0?t:CD?CD(t,e):function(){return t.apply(e,arguments)}},Ds={},QW=Tr("iterator"),tG=Array.prototype,eG=Tr("iterator"),SD=function(t){if(t!=null)return Tc(t,eG)||Tc(t,"@@iterator")||Ds[zh(t)]},rG=Ct.TypeError,DD=function(t,e,r){var n,o;tn(t);try{if(!(n=Tc(t,"return"))){if(e==="throw")throw r;return r}n=hr(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return tn(n),r},nG=Ct.TypeError,Gh=function(t,e){this.stopped=t,this.result=e},AD=Gh.prototype,oG=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=xD(e,c),h=function(y){return n&&DD(n,"normal",y),new Gh(!0,y)},m=function(y){return f?(tn(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(d)n=t;else{if(!(o=SD(t)))throw nG(f1(t)+" is not iterable");if(function(y){return y!==void 0&&(Ds.Array===y||tG[QW]===y)}(o)){for(i=0,a=Rh(t);a>i;i++)if((u=m(t[i]))&&jh(AD,u))return u;return new Gh(!1)}n=function(y,g){var w=arguments.length<2?SD(y):g;if(d1(w))return tn(hr(w,y));throw rG(f1(y)+" is not iterable")}(t,o)}for(s=n.next;!(l=hr(s,n)).done;){try{u=m(l.value)}catch(y){DD(n,"throw",y)}if(typeof u=="object"&&u&&jh(AD,u))return u}return new Gh(!1)},iG=function(t,e){return t===void 0?arguments.length<2?"":e:Xa(t)},aG=!or(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",xi(1,7)),t.stack!==7)}),uG=Tr("toStringTag"),qh=Ct.Error,sG=[].push,Mc=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=jh(L1,this);Ss?r=Ss(new qh(void 0),o?Rc(this):L1):(r=o?this:Lc(L1),Vr(r,uG,"Error")),Vr(r,"message",iG(e,"")),aG&&Vr(r,"stack",ZW(r.stack,1)),JW(r,n);var i=[];return oG(t,sG,{that:i}),Vr(r,"errors",i),r};Ss?Ss(Mc,qh):sD(Mc,qh);var L1=Mc.prototype=Lc(qh.prototype,{constructor:xi(1,Mc),message:xi(1,""),name:xi(1,"AggregateError")});Ic({global:!0},{AggregateError:Mc});var R1=Tr("unscopables"),M1=Array.prototype;M1[R1]==null&&Cs.f(M1,R1,{configurable:!0,value:Lc(null)});var $a,OD,kD,V1=function(t){M1[R1][t]=!0},z1=Tr("iterator"),BD=!1;[].keys&&("next"in(kD=[].keys())?(OD=Rc(Rc(kD)))!==Object.prototype&&($a=OD):BD=!0);var lG=$a==null||or(function(){var t={};return $a[z1].call(t)!==t});lG&&($a={}),Je($a[z1])||Ya($a,z1,function(){return this});var H1={IteratorPrototype:$a,BUGGY_SAFARI_ITERATORS:BD},cG=Cs.f,_D=Tr("toStringTag"),FD=function(t,e,r){t&&!Mr(t=r?t:t.prototype,_D)&&cG(t,_D,{configurable:!0,value:e})},fG=H1.IteratorPrototype,dG=function(){return this},pG=S1.PROPER,hG=S1.CONFIGURABLE,TD=H1.IteratorPrototype,U1=H1.BUGGY_SAFARI_ITERATORS,Vc=Tr("iterator"),gG=function(){return this},PD=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=Lc(fG,{next:xi(1,g)}),FD(m,E,!1),Ds[E]=dG})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!U1&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Vc]||d["@@iterator"]||o&&d[o],v=!U1&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Rc(h.call(new t)))!==Object.prototype&&u.next&&(Rc(u)!==TD&&(Ss?Ss(u,TD):Je(u[Vc])||Ya(u,Vc,gG)),FD(u,c,!0)),pG&&o=="values"&&p&&p.name!=="values"&&(hG?Vr(d,"name","values"):(f=!0,v=function(){return hr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ic({target:e,proto:!0,forced:U1||f},s)),d[Vc]!==v&&Ya(d,Vc,v,{name:o}),Ds[e]=v,s},vG=Ka.set,mG=Ka.getterFor("Array Iterator"),zc=PD(Array,"Array",function(t,e){vG(this,{type:"Array Iterator",target:Es(t),index:0,kind:e})},function(){var t=mG(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Ds.Arguments=Ds.Array,V1("keys"),V1("values"),V1("entries");var yG=yD.charAt,bG=Ka.set,wG=Ka.getterFor("String Iterator");PD(String,"String",function(t){bG(this,{type:"String Iterator",string:Xa(t),index:0})},function(){var t,e=wG(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=yG(r,n),e.index+=t.length,{value:t,done:!1})});var W1,Kh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},G1=y1("span").classList,ND=G1&&G1.constructor&&G1.constructor.prototype,jD=ND===Object.prototype?void 0:ND,q1=Tr("iterator"),ID=Tr("toStringTag"),K1=zc.values,LD=function(t,e){if(t){if(t[q1]!==K1)try{Vr(t,q1,K1)}catch{t[q1]=K1}if(t[ID]||Vr(t,ID,e),Kh[e]){for(var r in zc)if(t[r]!==zc[r])try{Vr(t,r,zc[r])}catch{t[r]=zc[r]}}}};for(var Y1 in Kh)LD(Ct[Y1]&&Ct[Y1].prototype,Y1);LD(jD,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
8
+ Sorry, wangEditor V5+ versions do not support IE browser.`),RD(),MD()):global&&(!((W1=global.navigator)===null||W1===void 0)&&W1.userAgent.match("QQBrowser"))&&(RD(),MD());function RD(){typeof globalThis>"u"&&(window.globalThis=window)}function MD(){pU===void 0&&(window.AggregateError=function(t,e){var r=new Error(e);return r.errors=t,r})}var VD,Yh=Array.isArray||function(t){return Va(t)=="Array"},zD=function(){},EG=[],HD=vs("Reflect","construct"),X1=/^\s*(?:class|function)\b/,CG=de(X1.exec),xG=!X1.exec(zD),Hc=function(t){if(!pr(t))return!1;try{return HD(zD,EG,t),!0}catch{return!1}},SG=!HD||Lr(function(){var t;return Hc(Hc.call)||!Hc(Object)||!Hc(function(){t=!0})||t})?function(t){if(!pr(t))return!1;switch(Ac(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xG||!!CG(X1,AS(t))}:Hc,DG=mr("species"),UD=Ot.Array,WD=function(t,e){return new(function(r){var n;return Yh(r)&&(n=r.constructor,(SG(n)&&(n===UD||Yh(n.prototype))||gn(n)&&(n=n[DG])===null)&&(n=void 0)),n===void 0?UD:n}(t))(e===0?0:e)},AG=mr("species"),GD=mr("isConcatSpreadable"),qD=Ot.TypeError,OG=vh>=51||!Lr(function(){var t=[];return t[GD]=!1,t.concat()[0]!==t}),kG=(VD="concat",vh>=51||!Lr(function(){var t=[];return(t.constructor={})[AG]=function(){return{foo:1}},t[VD](Boolean).foo!==1})),BG=function(t){if(!gn(t))return!1;var e=t[GD];return e!==void 0?!!e:Yh(t)};Vo({target:"Array",proto:!0,forced:!OG||!kG},{concat:function(t){var e,r,n,o,i,a=Ec(this),u=WD(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(BG(i=e===-1?a:arguments[e])){if(s+(o=Sc(i))>9007199254740991)throw qD("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&Xy(u,s,i[r])}else{if(s>=9007199254740991)throw qD("Maximum allowed index exceeded");Xy(u,s++,i)}return u.length=s,u}});var KD=qy.f,YD=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],XD={f:function(t){return YD&&Va(t)=="Window"?function(e){try{return KD(e)}catch{return wS(YD)}}(t):KD(oo(t))}},_G=de([].slice),$1={f:mr},FG=wi.f,je=function(t){var e=Jr.Symbol||(Jr.Symbol={});Ht(e,t)||FG(e,t,{value:$1.f(t)})},$D=de([].push),TG=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Ec(s),h=eS(v),m=Hy(l,c),y=Sc(h),g=0,w=f||WD,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:$D(E,d)}else switch(t){case 4:return!1;case 7:$D(E,d)}return i?-1:n||o?o:E}},Xh={forEach:TG(0)}.forEach,zr=wh("hidden"),ZD=mr("toPrimitive"),PG=ws.set,JD=ws.getterFor("Symbol"),Rn=Object.prototype,Di=Ot.Symbol,Ai=Di&&Di.prototype,QD=Ot.TypeError,Z1=Ot.QObject,Uc=vs("JSON","stringify"),tA=bh.f,Oi=wi.f,eA=XD.f,NG=Ny.f,rA=de([].push),Uo=za("symbols"),Wc=za("op-symbols"),J1=za("string-to-symbol-registry"),Q1=za("symbol-to-string-registry"),jG=za("wks"),tb=!Z1||!Z1.prototype||!Z1.prototype.findChild,eb=Rr&&Lr(function(){return zo(Oi({},"a",{get:function(){return Oi(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=tA(Rn,e);n&&delete Rn[e],Oi(t,e,r),n&&t!==Rn&&Oi(Rn,e,n)}:Oi,rb=function(t,e){var r=Uo[t]=zo(Ai);return PG(r,{type:"Symbol",tag:t,description:e}),Rr||(r.description=e),r},$h=function(t,e,r){t===Rn&&$h(Wc,e,r),Qr(t);var n=ys(e);return Qr(r),Ht(Uo,n)?(r.enumerable?(Ht(t,zr)&&t[zr][n]&&(t[zr][n]=!1),r=zo(r,{enumerable:Ln(0,!1)})):(Ht(t,zr)||Oi(t,zr,Ln(1,{})),t[zr][n]=!0),eb(t,n,r)):Oi(t,n,r)},nA=function(t,e){Qr(t);var r=oo(e),n=Ky(r).concat(nb(r));return Xh(n,function(o){Rr&&!Zr(oA,r,o)||$h(t,o,r[o])}),t},oA=function(t){var e=ys(t),r=Zr(NG,this,e);return!(this===Rn&&Ht(Uo,e)&&!Ht(Wc,e))&&(!(r||!Ht(this,e)||!Ht(Uo,e)||Ht(this,zr)&&this[zr][e])||r)},iA=function(t,e){var r=oo(t),n=ys(e);if(r!==Rn||!Ht(Uo,n)||Ht(Wc,n)){var o=tA(r,n);return!o||!Ht(Uo,n)||Ht(r,zr)&&r[zr][n]||(o.enumerable=!0),o}},aA=function(t){var e=eA(oo(t)),r=[];return Xh(e,function(n){Ht(Uo,n)||Ht(Dc,n)||rA(r,n)}),r},nb=function(t){var e=t===Rn,r=eA(e?Wc:oo(t)),n=[];return Xh(r,function(o){!Ht(Uo,o)||e&&!Ht(Rn,o)||rA(n,Uo[o])}),n};if(io||(Ai=(Di=function(){if(wc(Ai,this))throw QD("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Oc(arguments[0]):void 0,e=yh(t),r=function(n){this===Rn&&Zr(r,Wc,n),Ht(this,zr)&&Ht(this[zr],e)&&(this[zr][e]=!1),eb(this,e,Ln(1,n))};return Rr&&tb&&eb(Rn,e,{configurable:!0,set:r}),rb(e,t)}).prototype,_h(Ai,"toString",function(){return JD(this).tag}),_h(Di,"withoutSetter",function(t){return rb(yh(t),t)}),Ny.f=oA,wi.f=$h,bh.f=iA,qy.f=XD.f=aA,Sh.f=nb,$1.f=function(t){return rb(mr(t),t)},Rr&&Oi(Ai,"description",{configurable:!0,get:function(){return JD(this).description}})),Vo({global:!0,wrap:!0,forced:!io,sham:!io},{Symbol:Di}),Xh(Ky(jG),function(t){je(t)}),Vo({target:"Symbol",stat:!0,forced:!io},{for:function(t){var e=Oc(t);if(Ht(J1,e))return J1[e];var r=Di(e);return J1[e]=r,Q1[r]=e,r},keyFor:function(t){if(!ms(t))throw QD(t+" is not a symbol");if(Ht(Q1,t))return Q1[t]},useSetter:function(){tb=!0},useSimple:function(){tb=!1}}),Vo({target:"Object",stat:!0,forced:!io,sham:!Rr},{create:function(t,e){return e===void 0?zo(t):nA(zo(t),e)},defineProperty:$h,defineProperties:nA,getOwnPropertyDescriptor:iA}),Vo({target:"Object",stat:!0,forced:!io},{getOwnPropertyNames:aA,getOwnPropertySymbols:nb}),Vo({target:"Object",stat:!0,forced:Lr(function(){Sh.f(1)})},{getOwnPropertySymbols:function(t){return Sh.f(Ec(t))}}),Uc){var IG=!io||Lr(function(){var t=Di();return Uc([t])!="[null]"||Uc({a:t})!="{}"||Uc(Object(t))!="{}"});Vo({target:"JSON",stat:!0,forced:IG},{stringify:function(t,e,r){var n=_G(arguments),o=e;if((gn(e)||t!==void 0)&&!ms(t))return Yh(e)||(e=function(i,a){if(pr(o)&&(a=Zr(o,this,i,a)),!ms(a))return a}),n[1]=e,Z8(Uc,null,n)}})}if(!Ai[ZD]){var LG=Ai.valueOf;_h(Ai,ZD,function(t){return Zr(LG,this)})}Fh(Di,"Symbol"),Dc[zr]=!0,je("asyncIterator"),je("hasInstance"),je("isConcatSpreadable"),je("iterator"),je("match"),je("matchAll"),je("replace"),je("search"),je("species"),je("split"),je("toPrimitive"),je("toStringTag"),je("unscopables"),Fh(Ot.JSON,"JSON",!0);var RG=Jr.Symbol;je("asyncDispose"),je("dispose"),je("matcher"),je("metadata"),je("observable"),je("patternMatch"),je("replaceAll");var Zh=RG,MG=$1.f("iterator"),VG=Ma(function(t){function e(r){return typeof Zh=="function"&&typeof MG=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Zh=="function"&&n.constructor===Zh&&n!==Zh.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),zG=wz(VG),uA=b1.f,HG=or(function(){uA(1)});if(Ic({target:"Object",stat:!0,forced:!ao||HG,sham:!ao},{getOwnPropertyDescriptor:function(t,e){return uA(Es(t),e)}}),(typeof global>"u"?"undefined":zG(global))==="object"){var UG=Object.getOwnPropertyDescriptor(global,"window");global.window&&!UG.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
9
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
10
+ *
11
+ * Copyright (c) 2014-2017, Jon Schlinkert.
12
+ * Released under the MIT License.
13
+ */function sA(t){return Object.prototype.toString.call(t)==="[object Object]"}function yr(t){var e,r;return sA(t)!==!1&&((e=t.constructor)===void 0||sA(r=e.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function Mn(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Za(t){return!!t&&!!t[en]}function Ja(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===XG}(t)||Array.isArray(t)||!!t[yA]||!!t.constructor[yA]||ib(t)||ab(t))}function Gc(t,e,r){r===void 0&&(r=!1),As(t)===0?(r?Object.keys:yb)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function As(t){var e=t[en];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ib(t)?2:ab(t)?3:0}function ob(t,e){return As(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function lA(t,e,r){var n=As(t);n===2?t.set(e,r):n===3?(t.delete(e),t.add(r)):t[e]=r}function ib(t){return KG&&t instanceof Map}function ab(t){return YG&&t instanceof Set}function Qa(t){return t.o||t.t}function ub(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=$G(t);delete e[en];for(var r=yb(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function sb(t,e){return e===void 0&&(e=!1),lb(t)||Za(t)||!Ja(t)||(As(t)>1&&(t.set=t.add=t.clear=t.delete=WG),Object.freeze(t),e&&Gc(t,function(r,n){return sb(n,!0)},!0)),t}function WG(){Mn(2)}function lb(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Wo(t){var e=ZG[t];return e||Mn(18,t),e}function cA(){return qc}function cb(t,e){e&&(Wo("Patches"),t.u=[],t.s=[],t.v=e)}function Jh(t){fb(t),t.p.forEach(GG),t.p=null}function fb(t){t===qc&&(qc=t.l)}function fA(t){return qc={p:[],l:qc,h:t,m:!0,_:0}}function GG(t){var e=t[en];e.i===0||e.i===1?e.j():e.O=!0}function db(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||Wo("ES5").S(e,t,n),n?(r[en].P&&(Jh(e),Mn(4)),Ja(t)&&(t=Qh(e,t),e.l||tg(e,t)),e.u&&Wo("Patches").M(r[en],t,e.u,e.s)):t=Qh(e,r,[]),Jh(e),e.u&&e.v(e.u,e.s),t!==mA?t:void 0}function Qh(t,e,r){if(lb(e))return e;var n=e[en];if(!n)return Gc(e,function(i,a){return dA(t,n,e,i,a,r)},!0),e;if(n.A!==t)return e;if(!n.P)return tg(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=ub(n.k):n.o;Gc(n.i===3?new Set(o):o,function(i,a){return dA(t,n,o,i,a,r)}),tg(t,o,!1),r&&t.u&&Wo("Patches").R(n,r,t.u,t.s)}return n.o}function dA(t,e,r,n,o,i){if(Za(o)){var a=Qh(t,o,i&&e&&e.i!==3&&!ob(e.D,n)?i.concat(n):void 0);if(lA(r,n,a),!Za(a))return;t.m=!1}if(Ja(o)&&!lb(o)){if(!t.h.F&&t._<1)return;Qh(t,o),e&&e.A.l||tg(t,o)}}function tg(t,e,r){r===void 0&&(r=!1),t.h.F&&t.m&&sb(e,r)}function pb(t,e){var r=t[en];return(r?Qa(r):t)[e]}function pA(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function hb(t){t.P||(t.P=!0,t.l&&hb(t.l))}function gb(t){t.o||(t.o=ub(t.t))}function vb(t,e,r){var n=ib(e)?Wo("MapSet").N(e,r):ab(e)?Wo("MapSet").T(e,r):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:cA(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=eg;a&&(s=[u],l=rg);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,r):Wo("ES5").J(e,r);return(r?r.A:cA()).p.push(n),n}function qG(t){return Za(t)||Mn(22,t),function e(r){if(!Ja(r))return r;var n,o=r[en],i=As(r);if(o){if(!o.P&&(o.i<4||!Wo("ES5").K(o)))return o.t;o.I=!0,n=hA(r,i),o.I=!1}else n=hA(r,i);return Gc(n,function(a,u){o&&function(s,l){return As(s)===2?s.get(l):s[l]}(o.t,a)===u||lA(n,a,e(u))}),i===3?new Set(n):n}(t)}function hA(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ub(t)}var gA,qc,mb=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",KG=typeof Map<"u",YG=typeof Set<"u",vA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mA=mb?Symbol.for("immer-nothing"):((gA={})["immer-nothing"]=!0,gA),yA=mb?Symbol.for("immer-draftable"):"__$immer_draftable",en=mb?Symbol.for("immer-state"):"__$immer_state",XG=""+Object.prototype.constructor,yb=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,$G=Object.getOwnPropertyDescriptors||function(t){var e={};return yb(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ZG={},eg={get:function(t,e){if(e===en)return t;var r=Qa(t);if(!ob(r,e))return function(o,i,a){var u,s=pA(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!Ja(n)?n:n===pb(t.t,e)?(gb(t),t.o[e]=vb(t.A.h,n,t)):n},has:function(t,e){return e in Qa(t)},ownKeys:function(t){return Reflect.ownKeys(Qa(t))},set:function(t,e,r){var n=pA(Qa(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=pb(Qa(t),e),i=o==null?void 0:o[en];if(i&&i.t===r)return t.o[e]=r,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(r,o)&&(r!==void 0||ob(t.t,e)))return!0;gb(t),hb(t)}return t.o[e]===r&&typeof r!="number"&&(r!==void 0||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return pb(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,gb(t),hb(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Qa(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Mn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Mn(12)}},rg={};Gc(eg,function(t,e){rg[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),rg.deleteProperty=function(t,e){return eg.deleteProperty.call(this,t[0],e)},rg.set=function(t,e,r){return eg.set.call(this,t[0],e,r,t[0])};var JG=function(){function t(r){var n=this;this.g=vA,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;return function(p){var v=this;p===void 0&&(p=u);for(var h=arguments.length,m=Array(h>1?h-1:0),y=1;y<h;y++)m[y-1]=arguments[y];return s.produce(p,function(g){var w;return(w=i).call.apply(w,[v,g].concat(m))})}}var l;if(typeof i!="function"&&Mn(6),a!==void 0&&typeof a!="function"&&Mn(7),Ja(o)){var c=fA(n),f=vb(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Jh(c):fb(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return cb(c,a),db(p,c)},function(p){throw Jh(c),p}):(cb(c,a),db(l,c))}if(!o||typeof o!="object")return(l=i(o))===mA?void 0:(l===void 0&&(l=o),n.F&&sb(l,!0),l);Mn(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[n.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ja(r)||Mn(8),Za(r)&&(r=qG(r));var n=fA(this),o=vb(this,r,void 0);return o[en].C=!0,fb(n),o},e.finishDraft=function(r,n){var o=(r&&r[en]).A;return cb(o,n),db(void 0,o)},e.setAutoFreeze=function(r){this.F=r},e.setUseProxies=function(r){r&&!vA&&Mn(20),this.g=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Wo("Patches").$;return Za(r)?a(r,n):this.produce(r,function(u){return a(u,n)})},t}(),rn=new JG,ng=rn.produce;rn.produceWithPatches.bind(rn),rn.setAutoFreeze.bind(rn),rn.setUseProxies.bind(rn),rn.applyPatches.bind(rn);var bA=rn.createDraft.bind(rn),wA=rn.finishDraft.bind(rn);function so(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var og=new WeakMap,Kc=new WeakMap,EA=new WeakMap,CA=new WeakMap,xA=new WeakMap,SA=new WeakMap;function DA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ig(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?DA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var QG=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var r of C.pathRefs(t))Bq.transform(r,e);for(var n of C.pointRefs(t))_q.transform(n,e);for(var o of C.rangeRefs(t))Tq.transform(o,e);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=og.get(t)||[],l=tq(e);for(var c of s)u(I.transform(c,e));for(var f of l)u(f);og.set(t,a),R.transform(t,e),t.operations.push(e),C.normalize(t),e.type==="set_selection"&&(t.marks=null),Kc.get(t)||(Kc.set(t,!0),Promise.resolve().then(()=>{Kc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,r)=>{var{selection:n}=t;if(n)if(V.isExpanded(n))R.setNodes(t,{[e]:r},{match:it.isText,split:!0});else{var o=ig(ig({},C.marks(t)||{}),{},{[e]:r});t.marks=o,Kc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:r}=t;r&&V.isCollapsed(r)&&R.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:r}=t;r&&V.isCollapsed(r)&&R.delete(t,{unit:e})},deleteFragment:e=>{var{selection:r}=t;r&&V.isExpanded(r)&&R.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{R.splitNodes(t,{always:!0})},insertFragment:e=>{R.insertFragment(t,e)},insertNode:e=>{R.insertNodes(t,e)},insertText:e=>{var{selection:r,marks:n}=t;if(r){if(n){var o=ig({text:e},n);R.insertNodes(t,o)}else R.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[r,n]=e;if(!it.isText(r))if(ft.isElement(r)&&r.children.length===0)R.insertNodes(t,{text:""},{at:n.concat(0),voids:!0});else for(var o=!C.isEditor(r)&&ft.isElement(r)&&(t.isInline(r)||r.children.length===0||it.isText(r.children[0])||t.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=Q.get(t,n);if(!it.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(it.isText(s)||ft.isElement(s)&&t.isInline(s))!==o?(R.removeNodes(t,{at:n.concat(i),voids:!0}),i--):ft.isElement(s)?t.isInline(s)&&(l!=null&&it.isText(l)?c&&(R.insertNodes(t,{text:""},{at:n.concat(i+1),voids:!0}),i++):(R.insertNodes(t,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&it.isText(l)&&(it.equals(s,l,{loose:!0})?(R.mergeNodes(t,{at:n.concat(i),voids:!0}),i--):l.text===""?(R.removeNodes(t,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&(R.removeNodes(t,{at:n.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:r}=t;if(r)if(V.isExpanded(r))R.unsetNodes(t,e,{match:it.isText,split:!0});else{var n=ig({},C.marks(t)||{});delete n[e],t.marks=n,Kc.get(t)||t.onChange()}}};return t},tq=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return I.levels(e);case"insert_node":var{node:r,path:n}=t,o=I.levels(n),i=it.isText(r)?[]:Array.from(Q.nodes(r),E=>{var[,x]=E;return n.concat(x)});return[...o,...i];case"merge_node":var{path:a}=t;return[...I.ancestors(a),I.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(I.equals(u,s))return[];var l=[],c=[];for(var f of I.ancestors(u)){var d=I.transform(f,t);l.push(d)}for(var p of I.ancestors(s)){var v=I.transform(p,t);c.push(v)}var h=c[c.length-1],m=s[s.length-1],y=h.concat(m);return[...l,...c,y];case"remove_node":var{path:g}=t;return[...I.ancestors(g)];case"split_node":var{path:w}=t;return[...I.levels(w),I.next(w)];default:return[]}};function Go(t,e){if(t==null)return{};var r,n,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Dt,bb=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!e,n=e?iq(t):t,o=Dt.None,i=Dt.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=mq(s,l);if([o,i]=r?[i,c]:[c,o],Os(o,Dt.ZWJ)&&Os(i,Dt.ExtPict)&&!Eq(r?t.substring(0,a):t.substring(0,t.length-a))||Os(o,Dt.RI)&&Os(i,Dt.RI)&&!(u=u!==null?!u:!!r||xq(t.substring(0,t.length-a)))||o!==Dt.None&&i!==Dt.None&&bq(o,i))break;a+=s.length}return a||1},eq=/\s/,rq=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nq=/['\u2018\u2019]/,wb=(t,e,r)=>{if(r){var n=t.length-e;return[t.slice(n,t.length),t.slice(0,n)]}return[t.slice(0,e),t.slice(e)]},oq=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(eq.test(e))return!1;if(nq.test(e)){var o=bb(r,n),[i,a]=wb(r,o,n);if(t(i,a,n))return!0}return!rq.test(e)},iq=function*(t){for(var e=t.length-1,r=0;r<t.length;r++){var n=t.charAt(e-r);if(uq(n.charCodeAt(0))){var o=t.charAt(e-r-1);if(aq(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},aq=t=>t>=55296&&t<=56319,uq=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(Dt||(Dt={}));var sq=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,lq=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,cq=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,fq=/^[\u1100-\u115F\uA960-\uA97C]$/,dq=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,pq=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,hq=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,gq=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,vq=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,mq=(t,e)=>{var r=Dt.Any;return t.search(sq)!==-1&&(r|=Dt.Extend),e===8205&&(r|=Dt.ZWJ),e>=127462&&e<=127487&&(r|=Dt.RI),t.search(lq)!==-1&&(r|=Dt.Prepend),t.search(cq)!==-1&&(r|=Dt.SpacingMark),t.search(fq)!==-1&&(r|=Dt.L),t.search(dq)!==-1&&(r|=Dt.V),t.search(pq)!==-1&&(r|=Dt.T),t.search(hq)!==-1&&(r|=Dt.LV),t.search(gq)!==-1&&(r|=Dt.LVT),t.search(vq)!==-1&&(r|=Dt.ExtPict),r};function Os(t,e){return(t&e)!=0}var yq=[[Dt.L,Dt.L|Dt.V|Dt.LV|Dt.LVT],[Dt.LV|Dt.V,Dt.V|Dt.T],[Dt.LVT|Dt.T,Dt.T],[Dt.Any,Dt.Extend|Dt.ZWJ],[Dt.Any,Dt.SpacingMark],[Dt.Prepend,Dt.Any],[Dt.ZWJ,Dt.ExtPict],[Dt.RI,Dt.RI]];function bq(t,e){return yq.findIndex(r=>Os(t,r[0])&&Os(e,r[1]))===-1}var wq=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,Eq=t=>t.search(wq)!==-1,Cq=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,xq=t=>{var e=t.match(Cq);return e!==null&&e[0].length/2%2==1},AA=t=>yr(t)&&Q.isNodeList(t.children)&&!C.isEditor(t),ft={isAncestor:t=>yr(t)&&Q.isNodeList(t.children),isElement:AA,isElementList:t=>Array.isArray(t)&&t.every(e=>ft.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return AA(t)&&t[r]===e},matches(t,e){for(var r in e)if(r!=="children"&&t[r]!==e[r])return!1;return!0}},Sq=["text"],Dq=["text"];function OA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ks(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?OA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var kA=new WeakMap,C={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=t.selection,match:i}=e;if(o){var a=C.path(t,o),u=n==="lowest";for(var[s,l]of C.levels(t,{at:a,voids:r,match:i,reverse:u}))if(!it.isText(s)&&!I.equals(a,l))return[s,l]}},addMark(t,e,r){t.addMark(e,r)},after(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.point(t,e,{edge:"end"}),focus:C.end(t,[])},{distance:i=1}=n,a=0;for(var u of C.positions(t,ks(ks({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:C.start(t,[]),focus:C.point(t,e,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of C.positions(t,ks(ks({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteBackward(r)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteForward(r)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=e;t.deleteFragment(r)},edges:(t,e)=>[C.start(t,e),C.end(t,e)],end:(t,e)=>C.point(t,e,{edge:"end"}),first(t,e){var r=C.path(t,e,{edge:"start"});return C.node(t,r)},fragment(t,e){var r=C.range(t,e);return Q.fragment(t,r)},hasBlocks:(t,e)=>e.children.some(r=>C.isBlock(t,r)),hasInlines:(t,e)=>e.children.some(r=>it.isText(r)||C.isInline(t,r)),hasTexts:(t,e)=>e.children.every(r=>it.isText(r)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ft.isElement(e)&&!t.isInline(e),isEditor(t){if(!yr(t))return!1;var e=kA.get(t);if(e!==void 0)return e;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||yr(t.marks))&&(t.selection===null||V.isRange(t.selection))&&Q.isNodeList(t.children)&&ki.isOperationList(t.operations);return kA.set(t,r),r},isEnd(t,e,r){var n=C.end(t,r);return _t.equals(e,n)},isEdge:(t,e,r)=>C.isStart(t,e,r)||C.isEnd(t,e,r),isEmpty(t,e){var{children:r}=e,[n]=r;return r.length===0||r.length===1&&it.isText(n)&&n.text===""&&!t.isVoid(e)},isInline:(t,e)=>ft.isElement(e)&&t.isInline(e),isNormalizing(t){var e=EA.get(t);return e===void 0||e},isStart(t,e,r){if(e.offset!==0)return!1;var n=C.start(t,r);return _t.equals(e,n)},isVoid:(t,e)=>ft.isElement(e)&&t.isVoid(e),last(t,e){var r=C.path(t,e,{edge:"end"});return C.node(t,r)},leaf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r);return[Q.leaf(t,n),n]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,reverse:n=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),r){var a=[],u=C.path(t,r);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&C.isVoid(t,s)))break;n&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:r}=t;if(!r)return null;if(e)return e;if(V.isExpanded(r)){var[n]=C.nodes(t,{match:it.isText});if(n){var[o]=n;return Go(o,Sq)}return{}}var{anchor:i}=r,{path:a}=i,[u]=C.leaf(t,a);if(i.offset===0){var s=C.previous(t,{at:a,match:it.isText}),l=C.above(t,{match:p=>C.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;I.isAncestor(d,f)&&(u=c)}}return Go(u,Dq)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.after(t,i,{voids:n});if(a){var[,u]=C.last(t,[]),s=[a.path,u];if(I.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(I.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{at:s,match:o,mode:r,voids:n});return c}}},node(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r);return[Q.get(t,n),n]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),r){var s,l;if(Aq.isSpan(r))s=r[0],l=r[1];else{var c=C.path(t,r,{edge:"start"}),f=C.path(t,r,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Q.nodes(t,{reverse:i,from:s,to:l,pass:w=>{var[E]=w;return!a&&C.isVoid(t,E)}}),v=[];for(var[h,m]of p){var y=d&&I.compare(m,d[1])===0;if(n!=="highest"||!y){if(u(h,m))if(n==="lowest"&&y)d=[h,m];else{var g=n==="lowest"?d:[h,m];g&&(o?v.push(g):yield g),d=[h,m]}else if(o&&!y&&it.isText(h))return}}n==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*v)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=e,n=i=>og.get(i)||[];if(C.isNormalizing(t)){if(r){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});og.set(t,o)}n(t).length!==0&&C.withoutNormalizing(t,()=>{for(var i of n(t))if(Q.has(t,i)){var a=C.node(t,i),[u,s]=a;ft.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*n(t).length,c=0;n(t).length!==0;){if(c>l)throw new Error(`
14
+ Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
15
+ `));var f=n(t).pop();if(Q.has(t,f)){var d=C.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=C.path(t,e,r),o=I.parent(n);return C.node(t,o)},path(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(I.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return V.isRange(e)&&(e=o==="start"?V.start(e):o==="end"?V.end(e):I.common(e.anchor.path,e.focus.path)),_t.isPoint(e)&&(e=e.path),n!=null&&(e=e.slice(0,n)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.pathRefs(t).delete(o),o.current=null,i}};return C.pathRefs(t).add(o),o},pathRefs(t){var e=CA.get(t);return e||(e=new Set,CA.set(t,e)),e},point(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(I.isPath(e)){var o;if(n==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!it.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(e,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(V.isRange(e)){var[s,l]=V.edges(e);return n==="start"?s:l}return e},pointRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.pointRefs(t).delete(o),o.current=null,i}};return C.pointRefs(t).add(o),o},pointRefs(t){var e=xA.get(t);return e||(e=new Set,xA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=e;if(r){var a=C.range(t,r),[u,s]=V.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[h,m]of C.nodes(t,{at:r,reverse:o,voids:i})){if(ft.isElement(h)){if(!i&&t.isVoid(h)){yield C.start(t,m);continue}if(t.isInline(h))continue;if(C.hasInlines(t,h)){var y=I.isAncestor(m,s.path)?s:C.end(t,m),g=I.isAncestor(m,u.path)?u:C.start(t,m);f=C.string(t,{anchor:g,focus:y},{voids:i}),c=!0}}if(it.isText(h)){var w=I.equals(m,l.path);for(w?(p=o?l.offset:h.text.length-l.offset,v=l.offset):(p=h.text.length,v=o?p:0),(w||c||n==="offset")&&(yield{path:m,offset:v},c=!1);;){if(d===0){if(f==="")break;d=E(f,n,o),f=wb(f,d,o)[1]}if(v=o?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:m,offset:v}}}}}function E(x,D,S){return D==="character"?bb(x,S):D==="word"?function(k){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],H=0,G=!1;k.length>0;){var j=bb(k,F),[L,z]=wb(k,j,F);if(oq(L,z,F))G=!0,H+=j;else{if(G)break;H+=j}k=z}return H}(x,S):D==="line"||D==="block"?x.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=C.before(t,i,{voids:n});if(a){var[,u]=C.first(t,[]),s=[a.path,u];if(I.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(I.isPath(i)){var[l]=C.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=C.nodes(t,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(t,e,r)=>V.isRange(e)&&!r?e:{anchor:C.start(t,e),focus:C.end(t,r||e)},rangeRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return C.rangeRefs(t).delete(o),o.current=null,i}};return C.rangeRefs(t).add(o),o},rangeRefs(t){var e=SA.get(t);return e||(e=new Set,SA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){EA.set(t,e)},start:(t,e)=>C.point(t,e,{edge:"start"}),string(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=C.range(t,e),[i,a]=V.edges(o),u="";for(var[s,l]of C.nodes(t,{at:o,match:it.isText,voids:n})){var c=s.text;I.equals(l,a.path)&&(c=c.slice(0,a.offset)),I.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=V.edges(e);if(o.offset!==0||i.offset!==0||V.isCollapsed(e))return e;var a=C.above(t,{at:i,match:d=>C.isBlock(t,d)}),u=a?a[1]:[],s={anchor:C.start(t,[]),focus:i},l=!0;for(var[c,f]of C.nodes(t,{at:s,match:it.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||I.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,ks(ks({},e),{},{match:r=>C.isVoid(t,r)}))},withoutNormalizing(t,e){var r=C.isNormalizing(t);C.setNormalizing(t,!1);try{e()}finally{C.setNormalizing(t,r)}C.normalize(t)}},Aq={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(I.isPath)},Oq=["children"],kq=["text"],BA=new WeakMap,Q={ancestor(t,e){var r=Q.get(t,e);if(it.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of I.ancestors(e,r)){var o=[Q.ancestor(t,n),n];yield o}},child(t,e){if(it.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var r=t.children[e];if(r==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return r},*children(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=Q.ancestor(t,e),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=n?a-1:a+1}},common(t,e,r){var n=I.common(e,r);return[Q.get(t,n),n]},descendant(t,e){var r=Q.get(t,e);if(C.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))n.length!==0&&(yield[r,n])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))ft.isElement(r)&&(yield[r,n])},extractProps:t=>ft.isAncestor(t)?Go(t,Oq):Go(t,kq),first(t,e){for(var r=e.slice(),n=Q.get(t,r);n&&!it.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(t,e){if(it.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var r=ng({children:t.children},n=>{var[o,i]=V.edges(e),a=Q.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!V.includes(e,p)}});for(var[,u]of a){if(!V.includes(e,u)){var s=Q.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(I.equals(u,i.path)){var c=Q.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(I.equals(u,o.path)){var f=Q.leaf(n,u);f.text=f.text.slice(o.offset)}}C.isEditor(n)&&(n.selection=null)});return r.children},get(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(it.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));r=r.children[o]}return r},has(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(it.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:t=>it.isText(t)||ft.isElement(t)||C.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=BA.get(t);if(e!==void 0)return e;var r=t.every(n=>Q.isNode(n));return BA.set(t,r),r},last(t,e){for(var r=e.slice(),n=Q.get(t,r);n&&!it.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(t,e){var r=Q.get(t,e);if(!it.isText(r))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of I.levels(e,r)){var o=Q.get(t,n);yield[o,n]}},matches:(t,e)=>ft.isElement(t)&&ft.isElementProps(e)&&ft.matches(t,e)||it.isText(t)&&it.isTextProps(e)&&it.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(n?I.isBefore(u,i):I.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||it.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=I.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}n&&u[u.length-1]!==0?(u=I.previous(u),s=Q.get(t,u)):(u=I.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=n?s.children.length-1:0;I.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var r=I.parent(e),n=Q.get(t,r);if(it.isText(n))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return n},string:t=>it.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of Q.nodes(t,e))it.isText(r)&&(yield[r,n])}};function _A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Ue(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_A(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_A(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var ki={isNodeOperation:t=>ki.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!yr(t))return!1;switch(t.type){case"insert_node":case"remove_node":return I.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&I.isPath(t.path);case"merge_node":return typeof t.position=="number"&&I.isPath(t.path)&&yr(t.properties);case"move_node":return I.isPath(t.path)&&I.isPath(t.newPath);case"set_node":return I.isPath(t.path)&&yr(t.properties)&&yr(t.newProperties);case"set_selection":return t.properties===null&&V.isRange(t.newProperties)||t.newProperties===null&&V.isRange(t.properties)||yr(t.properties)&&yr(t.newProperties);case"split_node":return I.isPath(t.path)&&typeof t.position=="number"&&yr(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>ki.isOperation(e)),isSelectionOperation:t=>ki.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>ki.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return Ue(Ue({},t),{},{type:"remove_node"});case"insert_text":return Ue(Ue({},t),{},{type:"remove_text"});case"merge_node":return Ue(Ue({},t),{},{type:"split_node",path:I.previous(t.path)});case"move_node":var{newPath:e,path:r}=t;if(I.equals(e,r))return t;if(I.isSibling(r,e))return Ue(Ue({},t),{},{path:e,newPath:r});var n=I.transform(r,t),o=I.transform(I.next(r),t);return Ue(Ue({},t),{},{path:n,newPath:o});case"remove_node":return Ue(Ue({},t),{},{type:"insert_node"});case"remove_text":return Ue(Ue({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return Ue(Ue({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return Ue(Ue({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Ue(Ue({},t),{},{type:"merge_node",path:I.next(t.path)})}}},I={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=I.levels(t,e);return n=r?n.slice(1):n.slice(0,-1)},common(t,e){for(var r=[],n=0;n<t.length&&n<e.length;n++){var o=t[n];if(o!==e[n])break;r.push(o)}return r},compare(t,e){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0},endsAfter(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return I.equals(n,o)&&i>a},endsAt(t,e){var r=t.length,n=t.slice(0,r),o=e.slice(0,r);return I.equals(n,o)},endsBefore(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return I.equals(n,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>I.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&I.compare(t,e)===0,isBefore:(t,e)=>I.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&I.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&I.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&I.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&I.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var r=t.slice(0,-1),n=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&I.equals(r,n)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=[],o=0;o<=t.length;o++)n.push(t.slice(0,o));return r&&n.reverse(),n},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!I.isAncestor(e,t)&&!I.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ng(t,n=>{var{affinity:o="forward"}=r;if(t&&(t==null?void 0:t.length)!==0){if(n===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(I.equals(i,n)||I.endsBefore(i,n)||I.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(I.equals(a,n)||I.isAncestor(a,n))return null;I.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;I.equals(u,n)||I.endsBefore(u,n)?n[u.length-1]-=1:I.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(I.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else I.endsBefore(l,n)?n[l.length-1]+=1:I.isAncestor(l,n)&&t[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(I.equals(f,d))return;if(I.isAncestor(f,n)||I.equals(f,n)){var p=d.slice();return I.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}I.isSibling(f,d)&&(I.isAncestor(d,n)||I.equals(d,n))?I.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:I.endsBefore(d,n)||I.equals(d,n)||I.isAncestor(d,n)?(I.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):I.endsBefore(f,n)&&(I.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},Bq={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=I.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}};function FA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function TA(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?FA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var _t={compare(t,e){var r=I.compare(t.path,e.path);return r===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:r},isAfter:(t,e)=>_t.compare(t,e)===1,isBefore:(t,e)=>_t.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&I.equals(t.path,e.path),isPoint:t=>yr(t)&&typeof t.offset=="number"&&I.isPath(t.path),transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ng(t,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(e.type){case"insert_node":case"move_node":n.path=I.transform(i,e,r);break;case"insert_text":I.equals(e.path,i)&&e.offset<=a&&(n.offset+=e.text.length);break;case"merge_node":I.equals(e.path,i)&&(n.offset+=e.position),n.path=I.transform(i,e,r);break;case"remove_text":I.equals(e.path,i)&&e.offset<=a&&(n.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(I.equals(e.path,i)||I.isAncestor(e.path,i))return null;n.path=I.transform(i,e,r);break;case"split_node":if(I.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(n.offset-=e.position,n.path=I.transform(i,e,TA(TA({},r),{},{affinity:"forward"})))}else n.path=I.transform(i,e,r)}})}},_q={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=_t.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},Fq=["anchor","focus"];function PA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}var V={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,{anchor:n,focus:o}=t;return V.isBackward(t)===r?[n,o]:[o,n]},end(t){var[,e]=V.edges(t);return e},equals:(t,e)=>_t.equals(t.anchor,e.anchor)&&_t.equals(t.focus,e.focus),includes(t,e){if(V.isRange(e)){if(V.includes(t,e.anchor)||V.includes(t,e.focus))return!0;var[r,n]=V.edges(t),[o,i]=V.edges(e);return _t.isBefore(r,o)&&_t.isAfter(n,i)}var[a,u]=V.edges(t),s=!1,l=!1;return _t.isPoint(e)?(s=_t.compare(e,a)>=0,l=_t.compare(e,u)<=0):(s=I.compare(e,a.path)>=0,l=I.compare(e,u.path)<=0),s&&l},intersection(t,e){var r=Go(t,Fq),[n,o]=V.edges(t),[i,a]=V.edges(e),u=_t.isBefore(n,i)?i:n,s=_t.isBefore(o,a)?o:a;return _t.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?PA(Object(f),!0).forEach(function(d){so(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):PA(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},r)},isBackward(t){var{anchor:e,focus:r}=t;return _t.isAfter(e,r)},isCollapsed(t){var{anchor:e,focus:r}=t;return _t.equals(e,r)},isExpanded:t=>!V.isCollapsed(t),isForward:t=>!V.isBackward(t),isRange:t=>yr(t)&&_t.isPoint(t.anchor)&&_t.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=V.edges(t);return e},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ng(t,n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=V.isCollapsed(n);V.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?V.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=_t.transform(n.anchor,e,{affinity:o}),l=_t.transform(n.focus,e,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l})}},Tq={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=V.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},NA=(t,e)=>{for(var r in t){var n=t[r],o=e[r];if(yr(n)&&yr(o)){if(!NA(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},Pq=["text"],Nq=["anchor","focus"];function jA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function qo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var it={equals(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return Go(i,Pq)}return NA(n?o(t):t,n?o(e):e)},isText:t=>yr(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>it.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var r in e)if(r!=="text"&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;return!0},decorations(t,e){var r=[qo({},t)];for(var n of e){var o=Go(n,Nq),[i,a]=V.edges(n),u=[],s=0;for(var l of r){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,v=void 0;if(a.offset<s){var h=a.offset-f;v=qo(qo({},d),{},{text:d.text.slice(h)}),d=qo(qo({},d),{},{text:d.text.slice(0,h)})}if(i.offset>f){var m=i.offset-f;p=qo(qo({},d),{},{text:d.text.slice(0,m)}),d=qo(qo({},d),{},{text:d.text.slice(m)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}r=u}return r}};function IA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Yc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var jq={transform(t,e){t.children=bA(t.children);var r=t.selection&&bA(t.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(n,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of V.points(o))o[f]=_t.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var h=Q.leaf(n,d),m=h.text.slice(0,p),y=h.text.slice(p);if(h.text=m+v+y,o)for(var[g,w]of V.points(o))o[w]=_t.transform(g,i);break;case"merge_node":var{path:E}=i,x=Q.get(n,E),D=I.previous(E),S=Q.get(n,D),k=Q.parent(n,E),F=E[E.length-1];if(it.isText(x)&&it.isText(S))S.text+=x.text;else{if(it.isText(x)||it.isText(S))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(E,"] to nodes of different interfaces: ").concat(x," ").concat(S));S.children.push(...x.children)}if(k.children.splice(F,1),o)for(var[H,G]of V.points(o))o[G]=_t.transform(H,i);break;case"move_node":var{path:j,newPath:L}=i;if(I.isAncestor(j,L))throw new Error("Cannot move a path [".concat(j,"] to new path [").concat(L,"] because the destination is inside itself."));var z=Q.get(n,j),K=Q.parent(n,j),X=j[j.length-1];K.children.splice(X,1);var nt=I.transform(j,i),lt=Q.get(n,I.parent(nt)),st=nt[nt.length-1];if(lt.children.splice(st,0,z),o)for(var[ut,B]of V.points(o))o[B]=_t.transform(ut,i);break;case"remove_node":var{path:A}=i,N=A[A.length-1];if(Q.parent(n,A).children.splice(N,1),o)for(var[W,$]of V.points(o)){var q=_t.transform(W,i);if(o!=null&&q!=null)o[$]=q;else{var at=void 0,vt=void 0;for(var[yt,St]of Q.texts(n)){if(I.compare(St,A)!==-1){vt=[yt,St];break}at=[yt,St]}var Y=!1;at&&vt&&(Y=I.equals(vt[1],A)?!I.hasPrevious(vt[1]):I.common(at[1],A).length<I.common(vt[1],A).length),at&&!Y?(W.path=at[1],W.offset=at[0].text.length):vt?(W.path=vt[1],W.offset=0):o=null}}break;case"remove_text":var{path:Rt,offset:kt,text:ht}=i;if(ht.length===0)break;var Bt=Q.leaf(n,Rt),Pe=Bt.text.slice(0,kt),Wt=Bt.text.slice(kt+ht.length);if(Bt.text=Pe+Wt,o)for(var[ee,we]of V.points(o))o[we]=_t.transform(ee,i);break;case"set_node":var{path:Ar,properties:Vt,newProperties:Xr}=i;if(Ar.length===0)throw new Error("Cannot set properties on the root node!");var Jn=Q.get(n,Ar);for(var jo in Xr){if(jo==="children"||jo==="text")throw new Error('Cannot set the "'.concat(jo,'" property of nodes!'));var hc=Xr[jo];hc==null?delete Jn[jo]:Jn[jo]=hc}for(var ds in Vt)Xr.hasOwnProperty(ds)||delete Jn[ds];break;case"set_selection":var{newProperties:Qn}=i;if(Qn==null)o=Qn;else{if(o==null){if(!V.isRange(Qn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Qn)," when there is no current selection."));o=Yc({},Qn)}for(var Io in Qn){var di=Qn[Io];if(di==null){if(Io==="anchor"||Io==="focus")throw new Error('Cannot remove the "'.concat(Io,'" selection property'));delete o[Io]}else o[Io]=di}}break;case"split_node":var{path:Or,position:kr,properties:Br}=i;if(Or.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Or,"] because the root node cannot be split."));var jr,dr=Q.get(n,Or),jn=Q.parent(n,Or),lh=Or[Or.length-1];if(it.isText(dr)){var Na=dr.text.slice(0,kr),pi=dr.text.slice(kr);dr.text=Na,jr=Yc(Yc({},Br),{},{text:pi})}else{var gc=dr.children.slice(0,kr),ps=dr.children.slice(kr);dr.children=gc,jr=Yc(Yc({},Br),{},{children:ps})}if(jn.children.splice(lh+1,0,jr),o)for(var[vc,to]of V.points(o))o[to]=_t.transform(vc,i)}return o})(t,r,e)}finally{t.children=wA(t.children),t.selection=r?Za(r)?wA(r):r:null}}},Iq=["text"],Lq=["children"];function LA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function RA(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?LA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Rq={insertNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?C.end(t,[]):[0],s=!0),s==null&&(s=!1),V.isRange(a))if(n||(a=C.unhangRange(t,a)),V.isCollapsed(a))a=a.anchor;else{var[,c]=V.edges(a),f=C.pointRef(t,c);R.delete(t,{at:a}),a=f.unref()}if(_t.isPoint(a)){u==null&&(u=it.isText(l)?D=>it.isText(D):t.isInline(l)?D=>it.isText(D)||C.isInline(t,D):D=>C.isBlock(t,D));var[d]=C.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=C.pathRef(t,p),h=C.isEnd(t,a,p);R.splitNodes(t,{at:a,match:u,mode:i,voids:o});var m=v.unref();a=h?I.next(m):m}var y=I.parent(a),g=a[a.length-1];if(o||!C.void(t,{at:y})){for(var w of e){var E=y.concat(g);g++,t.apply({type:"insert_node",path:E,node:w}),a=I.next(a)}if(a=I.previous(a),s){var x=C.end(t,a);x&&R.select(t,x)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:n="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=I.isPath(r)?Bs(t,r):w=>C.isBlock(t,w)),r){var a=C.nodes(t,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,w=>{var[,E]=w;return C.pathRef(t,E)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=C.node(t,I.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var h=I.next(d);R.moveNodes(t,{at:l,to:h,voids:o}),R.removeNodes(t,{at:d,voids:o})}else if(p===0)R.moveNodes(t,{at:l,to:d,voids:o});else if(p===v-1){var m=I.next(d);R.moveNodes(t,{at:l,to:m,voids:o})}else{var y=I.next(l),g=I.next(d);R.splitNodes(t,{at:y,voids:o}),R.moveNodes(t,{at:l,to:g,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{match:r,at:n=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(n){if(r==null)if(I.isPath(n)){var[u]=C.parent(t,n);r=F=>u.children.includes(F)}else r=F=>C.isBlock(t,F);if(!o&&V.isRange(n)&&(n=C.unhangRange(t,n)),V.isRange(n))if(V.isCollapsed(n))n=n.anchor;else{var[,s]=V.edges(n),l=C.pointRef(t,s);R.delete(t,{at:n}),n=l.unref(),e.at==null&&R.select(t,n)}var[c]=C.nodes(t,{at:n,match:r,voids:i,mode:a}),f=C.previous(t,{at:n,match:r,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,h]=f;if(p.length!==0&&h.length!==0){var m,y,g=I.next(h),w=I.common(p,h),E=I.isSibling(p,h),x=Array.from(C.levels(t,{at:p}),F=>{var[H]=F;return H}).slice(w.length).slice(0,-1),D=C.above(t,{at:p,mode:"highest",match:F=>x.includes(F)&&MA(t,F)}),S=D&&C.pathRef(t,D[1]);if(it.isText(d)&&it.isText(v)){var k=Go(d,Iq);y=v.text.length,m=k}else{if(!ft.isElement(d)||!ft.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(v)));k=Go(d,Lq),y=v.children.length,m=k}E||R.moveNodes(t,{at:p,to:g,voids:i}),S&&R.removeNodes(t,{at:S.current,voids:i}),ft.isElement(v)&&C.isEmpty(t,v)||it.isText(v)&&v.text===""&&h[h.length-1]!==0?R.removeNodes(t,{at:h,voids:i}):t.apply({type:"merge_node",path:g,position:y,properties:m}),S&&S.unref()}}}})},moveNodes(t,e){C.withoutNormalizing(t,()=>{var{to:r,at:n=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(n){a==null&&(a=I.isPath(n)?Bs(t,n):p=>C.isBlock(t,p));var u=C.pathRef(t,r),s=C.nodes(t,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return C.pathRef(t,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&I.isSibling(d,f)&&I.isAfter(d,f)&&(u.current=I.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=I.isPath(i)?Bs(t,i):d=>C.isBlock(t,d)),!r&&V.isRange(i)&&(i=C.unhangRange(t,i));var u=C.nodes(t,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,d=>{var[,p]=d;return C.pathRef(t,p)});for(var l of s){var c=l.unref();if(c){var[f]=C.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=I.isPath(o)?Bs(t,o):x=>C.isBlock(t,x)),!i&&V.isRange(o)&&(o=C.unhangRange(t,o)),u&&V.isRange(o)){if(V.isCollapsed(o)&&C.leaf(t,o.anchor)[0].text.length>0)return;var l=C.rangeRef(t,o,{affinity:"inward"}),[c,f]=V.edges(o),d=a==="lowest"?"lowest":"highest",p=C.isEnd(t,f,f.path);R.splitNodes(t,{at:f,match:n,mode:d,voids:s,always:!p});var v=C.isStart(t,c,c.path);R.splitNodes(t,{at:c,match:n,mode:d,voids:s,always:!v}),o=l.unref(),r.at==null&&R.select(t,o)}for(var[h,m]of C.nodes(t,{at:o,match:n,mode:a,voids:s})){var y={},g={};if(m.length!==0){var w=!1;for(var E in e)E!=="children"&&E!=="text"&&e[E]!==h[E]&&(w=!0,h.hasOwnProperty(E)&&(y[E]=h[E]),e[E]!=null&&(g[E]=e[E]));w&&t.apply({type:"set_node",path:m,properties:y,newProperties:g})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=z=>C.isBlock(t,z)),V.isRange(i)&&(i=Mq(t,i)),I.isPath(i)){var s=i,l=C.point(t,s),[c]=C.parent(t,s);o=z=>z===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=C.pointRef(t,i,{affinity:"backward"}),[d]=C.nodes(t,{at:i,match:o,mode:r,voids:n});if(d){var p=C.void(t,{at:i,mode:"highest"});if(!n&&p){var[v,h]=p;if(ft.isElement(v)&&t.isInline(v)){var m=C.after(t,h);if(!m){var y=I.next(h);R.insertNodes(t,{text:""},{at:y,voids:n}),m=C.point(t,y)}i=m,u=!0}a=i.path.length-h.length+1,u=!0}var g=C.pointRef(t,i),w=i.path.length-a,[,E]=d,x=i.path.slice(0,w),D=a===0?i.offset:i.path[w]+0;for(var[S,k]of C.levels(t,{at:x,reverse:!0,voids:n})){var F=!1;if(k.length<E.length||k.length===0||!n&&C.isVoid(t,S))break;var H=f.current,G=C.isEnd(t,H,k);if(u||!f||!C.isEdge(t,H,k)){F=!0;var j=Q.extractProps(S);t.apply({type:"split_node",path:k,position:D,properties:j})}D=k[k.length-1]+(F||G?1:0)}if(e.at==null){var L=g.current||C.end(t,[]);R.select(t,L)}f.unref(),g.unref()}}})},unsetNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var n={};for(var o of e)n[o]=null;R.setNodes(t,n,r)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=I.isPath(i)?Bs(t,i):d=>C.isBlock(t,d)),I.isPath(i)&&(i=C.range(t,i));var u=V.isRange(i)?C.rangeRef(t,i):null,s=C.nodes(t,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,d=>{var[,p]=d;return C.pathRef(t,p)}).reverse(),c=function(d){var p=d.unref(),[v]=C.node(t,p),h=C.range(t,p);n&&u&&(h=V.intersection(u.current,h)),R.liftNodes(t,{at:h,match:m=>ft.isAncestor(v)&&v.children.includes(m),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=t.selection}=r;if(u){if(a==null&&(a=I.isPath(u)?Bs(t,u):t.isInline(e)?m=>C.isInline(t,m)||it.isText(m):m=>C.isBlock(t,m)),o&&V.isRange(u)){var[s,l]=V.edges(u),c=C.rangeRef(t,u,{affinity:"inward"});R.splitNodes(t,{at:l,match:a,voids:i}),R.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&R.select(t,u)}var f=Array.from(C.nodes(t,{at:u,match:t.isInline(e)?m=>C.isBlock(t,m):m=>C.isEditor(m),mode:"lowest",voids:i}));for(var[,d]of f){var p=V.isRange(u)?V.intersection(u,C.range(t,d)):u;if(p){var v=Array.from(C.nodes(t,{at:p,match:a,mode:n,voids:i}));if(v.length>0){var h=function(){var[m]=v,y=v[v.length-1],[,g]=m,[,w]=y;if(g.length===0&&w.length===0)return"continue";var E=I.equals(g,w)?I.parent(g):I.common(g,w),x=C.range(t,g,w),D=C.node(t,E),[S]=D,k=E.length+1,F=I.next(w.slice(0,k)),H=RA(RA({},e),{},{children:[]});R.insertNodes(t,H,{at:F,voids:i}),R.moveNodes(t,{at:x,match:G=>ft.isAncestor(S)&&S.children.includes(G),to:F.concat(0),voids:i})}();if(h==="continue")continue}}}}})}},MA=(t,e)=>{if(ft.isElement(e)){var r=e;return!!C.isVoid(t,e)||r.children.length===1&&MA(t,r.children[0])}return!C.isEditor(e)},Mq=(t,e)=>{if(V.isCollapsed(e))return e.anchor;var[,r]=V.edges(e),n=C.pointRef(t,r);return R.delete(t,{at:e}),n.unref()},Bs=(t,e)=>{var[r]=C.node(t,e);return n=>n===r};function VA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function zA(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?VA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var Vq={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=e,{selection:n}=t;if(n){if(r==="anchor")R.select(t,n.anchor);else if(r==="focus")R.select(t,n.focus);else if(r==="start"){var[o]=V.edges(n);R.select(t,o)}else if(r==="end"){var[,i]=V.edges(n);R.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:n=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(r){a==="start"&&(a=V.isBackward(r)?"focus":"anchor"),a==="end"&&(a=V.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?C.before(t,u,l):C.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?C.before(t,s,l):C.after(t,s,l);d&&(c.focus=d)}R.setSelection(t,c)}},select(t,e){var{selection:r}=t;if(e=C.range(t,e),r)R.setSelection(t,e);else{if(!V.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:r,newProperties:e})}},setPoint(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=t,{edge:o="both"}=r;if(n){o==="start"&&(o=V.isBackward(n)?"focus":"anchor"),o==="end"&&(o=V.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;R.setSelection(t,{[o==="anchor"?"anchor":"focus"]:zA(zA({},u),e)})}},setSelection(t,e){var{selection:r}=t,n={},o={};if(r){for(var i in e)(i==="anchor"&&e.anchor!=null&&!_t.equals(e.anchor,r.anchor)||i==="focus"&&e.focus!=null&&!_t.equals(e.focus,r.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==r[i])&&(n[i]=r[i],o[i]=e[i]);Object.keys(n).length>0&&t.apply({type:"set_selection",properties:n,newProperties:o})}}},zq={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(V.isRange(a)&&V.isCollapsed(a)&&(a=a.anchor),_t.isPoint(a)){var s=C.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?C.before(t,a,c)||C.start(t,[]):C.after(t,a,c)||C.end(t,[])},u=!0}}if(I.isPath(a))R.removeNodes(t,{at:a,voids:i});else if(!V.isCollapsed(a)){if(!u){var[,f]=V.edges(a),d=C.end(t,[]);_t.equals(f,d)||(a=C.unhangRange(t,a,{voids:i}))}var[p,v]=V.edges(a),h=C.above(t,{match:vt=>C.isBlock(t,vt),at:p,voids:i}),m=C.above(t,{match:vt=>C.isBlock(t,vt),at:v,voids:i}),y=h&&m&&!I.equals(h[1],m[1]),g=I.equals(p.path,v.path),w=i?null:C.void(t,{at:p,mode:"highest"}),E=i?null:C.void(t,{at:v,mode:"highest"});if(w){var x=C.before(t,p);x&&h&&I.isAncestor(h[1],x.path)&&(p=x)}if(E){var D=C.after(t,v);D&&m&&I.isAncestor(m[1],D.path)&&(v=D)}var S,k=[];for(var F of C.nodes(t,{at:a,voids:i})){var[H,G]=F;S&&I.compare(G,S)===0||(!i&&C.isVoid(t,H)||!I.isCommon(G,p.path)&&!I.isCommon(G,v.path))&&(k.push(F),S=G)}var j=Array.from(k,vt=>{var[,yt]=vt;return C.pathRef(t,yt)}),L=C.pointRef(t,p),z=C.pointRef(t,v);if(!g&&!w){var K=L.current,[X]=C.leaf(t,K),{path:nt}=K,{offset:lt}=p,st=X.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:nt,offset:lt,text:st})}for(var ut of j){var B=ut.unref();R.removeNodes(t,{at:B,voids:i})}if(!E){var A=z.current,[N]=C.leaf(t,A),{path:W}=A,$=g?p.offset:0,q=N.text.slice($,v.offset);q.length>0&&t.apply({type:"remove_text",path:W,offset:$,text:q})}!g&&y&&z.current&&L.current&&R.mergeNodes(t,{at:z.current,hanging:!0,voids:i});var at=r?L.unref()||z.unref():z.unref()||L.unref();e.at==null&&at&&R.select(t,at)}}})},insertFragment(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=t.selection}=r;if(e.length&&i){if(V.isRange(i))if(n||(i=C.unhangRange(t,i)),V.isCollapsed(i))i=i.anchor;else{var[,a]=V.edges(i);if(!o&&C.void(t,{at:a}))return;var u=C.pointRef(t,a);R.delete(t,{at:i}),i=u.unref()}else I.isPath(i)&&(i=C.start(t,i));if(o||!C.void(t,{at:i})){var s=C.above(t,{at:i,match:A=>C.isInline(t,A),mode:"highest",voids:o});if(s){var[,l]=s;C.isEnd(t,i,l)?i=C.after(t,l):C.isStart(t,i,l)&&(i=C.before(t,l))}var c=C.above(t,{match:A=>C.isBlock(t,A),at:i,voids:o}),[,f]=c,d=C.isStart(t,i,f),p=C.isEnd(t,i,f),v=d&&p,h=!d||d&&p,m=!p,[,y]=Q.first({children:e},[]),[,g]=Q.last({children:e},[]),w=[],E=A=>{var[N,W]=A;return W.length!==0&&(!!v||!(h&&I.isAncestor(W,y)&&ft.isElement(N)&&!t.isVoid(N)&&!t.isInline(N))&&!(m&&I.isAncestor(W,g)&&ft.isElement(N)&&!t.isVoid(N)&&!t.isInline(N)))};for(var x of Q.nodes({children:e},{pass:E}))E(x)&&w.push(x);var D=[],S=[],k=[],F=!0,H=!1;for(var[G]of w)ft.isElement(G)&&!t.isInline(G)?(F=!1,H=!0,S.push(G)):F?D.push(G):k.push(G);var[j]=C.nodes(t,{at:i,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),[,L]=j,z=C.isStart(t,i,L),K=C.isEnd(t,i,L),X=C.pathRef(t,p?I.next(f):f),nt=C.pathRef(t,K?I.next(L):L),lt=C.pathRef(t,f);R.splitNodes(t,{at:i,match:A=>H?C.isBlock(t,A):it.isText(A)||C.isInline(t,A),mode:H?"lowest":"highest",voids:o});var st=C.pathRef(t,!z||z&&K?I.next(L):L);if(R.insertNodes(t,D,{at:st.current,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),v&&S.length&&R.delete(t,{at:lt.unref(),voids:o}),R.insertNodes(t,S,{at:X.current,match:A=>C.isBlock(t,A),mode:"lowest",voids:o}),R.insertNodes(t,k,{at:nt.current,match:A=>it.isText(A)||C.isInline(t,A),mode:"highest",voids:o}),!r.at){var ut;ut=k.length>0?I.previous(nt.current):S.length>0?I.previous(X.current):I.previous(st.current);var B=C.end(t,ut);R.select(t,B)}st.unref(),X.unref(),nt.unref()}}})},insertText(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{voids:n=!1}=r,{at:o=t.selection}=r;if(o){if(I.isPath(o)&&(o=C.range(t,o)),V.isRange(o))if(V.isCollapsed(o))o=o.anchor;else{var i=V.end(o);if(!n&&C.void(t,{at:i}))return;var a=C.pointRef(t,i);R.delete(t,{at:o,voids:n}),o=a.unref(),R.setSelection(t,{anchor:o,focus:o})}if(n||!C.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function HA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ag(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?HA(Object(r),!0).forEach(function(n){so(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var R=ag(ag(ag(ag({},jq),Rq),Vq),zq),Eb="[object Map]",Cb="[object Set]",Hq=/^\[object .+?Constructor\]$/,Uq=/^(?:0|[1-9]\d*)$/,Wq="[\\ud800-\\udfff]",xb="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Sb="\\ud83c[\\udffb-\\udfff]",UA="[^\\ud800-\\udfff]",WA="(?:\\ud83c[\\udde6-\\uddff]){2}",GA="[\\ud800-\\udbff][\\udc00-\\udfff]",qA="(?:"+xb+"|"+Sb+")?",Gq="[\\ufe0e\\ufe0f]?"+qA+("(?:\\u200d(?:"+[UA,WA,GA].join("|")+")[\\ufe0e\\ufe0f]?"+qA+")*"),qq="(?:"+[UA+xb+"?",xb,WA,GA,Wq].join("|")+")",Kq=RegExp(Sb+"(?="+Sb+")|"+qq+Gq,"g"),Yq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Xq=typeof ae=="object"&&ae&&ae.Object===Object&&ae,$q=typeof self=="object"&&self&&self.Object===Object&&self,tu=Xq||$q||Function("return this")();function Zq(t,e){return function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a}(e,function(r){return t[r]})}function Jq(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Qq(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}function tK(t){return function(e){return Yq.test(e)}(t)?function(e){return e.match(Kq)||[]}(t):function(e){return e.split("")}(t)}var KA,YA,eK=Function.prototype,ug=Object.prototype,Db=tu["__core-js_shared__"],XA=function(){var t=/[^.]+$/.exec(Db&&Db.keys&&Db.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),$A=eK.toString,sg=ug.hasOwnProperty,Xc=ug.toString,rK=RegExp("^"+$A.call(sg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ZA=tu.Symbol,Ab=ZA?ZA.iterator:void 0,nK=ug.propertyIsEnumerable,oK=(KA=Object.keys,YA=Object,function(t){return KA(YA(t))}),Ob=$c(tu,"DataView"),kb=$c(tu,"Map"),Bb=$c(tu,"Promise"),_b=$c(tu,"Set"),Fb=$c(tu,"WeakMap"),iK=ru(Ob),aK=ru(kb),uK=ru(Bb),sK=ru(_b),lK=ru(Fb);function cK(t,e){var r=JA(t)||function(a){return function(u){return e7(u)&&Tb(u)}(a)&&sg.call(a,"callee")&&(!nK.call(a,"callee")||Xc.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!sg.call(t,i)||o&&(i=="length"||pK(i,n))||r.push(i);return r}function fK(t){if(!t7(t)||function(r){return!!XA&&XA in r}(t))return!1;var e=QA(t)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n}(t)?rK:Hq;return e.test(ru(t))}function dK(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||ug,e!==n)return oK(t);var e,r,n,o=[];for(var i in Object(t))sg.call(t,i)&&i!="constructor"&&o.push(i);return o}function $c(t,e){var r=function(n,o){return n==null?void 0:n[o]}(t,e);return fK(r)?r:void 0}var eu=function(t){return Xc.call(t)};function pK(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||Uq.test(t))&&t>-1&&t%1==0&&t<e}function ru(t){if(t!=null){try{return $A.call(t)}catch{}try{return t+""}catch{}}return""}(Ob&&eu(new Ob(new ArrayBuffer(1)))!="[object DataView]"||kb&&eu(new kb)!=Eb||Bb&&eu(Bb.resolve())!="[object Promise]"||_b&&eu(new _b)!=Cb||Fb&&eu(new Fb)!="[object WeakMap]")&&(eu=function(t){var e=Xc.call(t),r=e=="[object Object]"?t.constructor:void 0,n=r?ru(r):void 0;if(n)switch(n){case iK:return"[object DataView]";case aK:return Eb;case uK:return"[object Promise]";case sK:return Cb;case lK:return"[object WeakMap]"}return e});var JA=Array.isArray;function Tb(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!QA(t)}function QA(t){var e=t7(t)?Xc.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function t7(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function e7(t){return!!t&&typeof t=="object"}function hK(t){return t?Zq(t,function(e){return Tb(e)?cK(e):dK(e)}(t)):[]}var r7=function(t){if(!t)return[];if(Tb(t))return function(r){return typeof r=="string"||!JA(r)&&e7(r)&&Xc.call(r)=="[object String]"}(t)?tK(t):function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n}(t);if(Ab&&t[Ab])return function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o}(t[Ab]());var e=eu(t);return(e==Eb?Jq:e==Cb?Qq:hK)(t)};function n7(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function Pb(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(r){t[r]===void 0?t[r]=e[r]:n7(e[r])&&n7(t[r])&&Object.keys(e[r]).length>0&&Pb(t[r],e[r])})}var o7={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Zc(){var t=typeof document<"u"?document:{};return Pb(t,o7),t}var gK={document:o7,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function nu(){var t=typeof window<"u"?window:{};return Pb(t,gK),t}function Nb(t){return Nb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nb(t)}function lg(t,e){return lg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},lg(t,e)}function vK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function jb(t,e,r){return jb=vK()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&lg(u,i.prototype),u},jb.apply(null,arguments)}function Ib(t){var e=typeof Map=="function"?new Map:void 0;return Ib=function(r){if(r===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return jb(r,arguments,Nb(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),lg(n,r)},Ib(t)}var Bi=function(t){var e,r;function n(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(Ib(Array));function cg(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(r){Array.isArray(r)?e.push.apply(e,cg(r)):e.push(r)}),e}function i7(t,e){return Array.prototype.filter.call(t,e)}function _(t,e){var r=nu(),n=Zc(),o=[];if(!e&&t instanceof Bi)return t;if(!t)return new Bi(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=n.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(t.trim(),e||n)}else if(t.nodeType||t===r||t===n)o.push(t);else if(Array.isArray(t)){if(t instanceof Bi)return t;o=t}return new Bi(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function _s(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=cg(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,n)}),this}function Fs(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=cg(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,n)}),this}function Ts(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=cg(e.map(function(o){return o.split(" ")}));return i7(this,function(o){return n.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function vn(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(t,e);else for(var n in t)this[r][n]=t[n],this[r].setAttribute(n,t[n]);return this}function fg(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Ps(){var t=this[0];if(t){var e,r={};if(t.dataset)for(var n in t.dataset)r[n]=t.dataset[n];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(r[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function lo(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<e.selectedOptions.length;n+=1)r.push(e.selectedOptions[n].value);return r}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function co(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];function u(h){var m=h.target;if(m){var y=h.target.dom7EventData||[];if(y.indexOf(h)<0&&y.unshift(h),_(m).is(o))i.apply(m,y);else for(var g=_(m).parents(),w=0;w<g.length;w+=1)_(g[w]).is(o)&&i.apply(g[w],y)}}function s(h){var m=h&&h.target&&h.target.dom7EventData||[];m.indexOf(h)<0&&m.unshift(h),i.apply(this,m)}typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:s}),d.addEventListener(v,s,a)}}return this}function a7(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=n.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function dg(){var t=nu();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function pg(){var t=nu();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function u7(){if(this.length>0){var t=nu(),e=Zc(),r=this[0],n=r.getBoundingClientRect(),o=e.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===t?t.scrollY:r.scrollTop,s=r===t?t.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function Ns(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function hg(){for(var t=nu(),e=0;e<this.length;e+=1){var r=this[e];r.style.display==="none"&&(r.style.display=""),t.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function gg(t,e){var r,n=nu();if(arguments.length===1){if(typeof t!="string"){for(r=0;r<this.length;r+=1)for(var o in t)this[r].style[o]=t[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function vg(t){return t?(this.forEach(function(e,r){t.apply(e,[e,r])}),this):this}function s7(t){return _(i7(this,t))}function _i(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function mg(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function l7(t){var e,r,n=nu(),o=Zc(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=_(t),r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}if(t===o)return i===o;if(t===n)return i===n;if(t.nodeType||t instanceof Bi){for(e=t.nodeType?[t]:t,r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}return!1}function mn(){for(var t,e=Zc(),r=0;r<arguments.length;r+=1){t=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof Bi)for(var i=0;i<t.length;i+=1)this[n].appendChild(t[i]);else this[n].appendChild(t)}return this}function c7(t){var e,r,n=Zc();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=n.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(o.childNodes[r],this[e].childNodes[0])}else if(t instanceof Bi)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function js(t){for(var e=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(t?_(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return _(e)}function yg(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)t?_(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return _(e)}function Is(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(t),o=0;o<n.length;o+=1)e.push(n[o]);return _(e)}function Ls(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)t&&!_(n[o]).is(t)||e.push(n[o]);return _(e)}function Rs(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Ms(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var r=0;r<e.childNodes.length;r+=1)e.childNodes[r].parentNode&&e.childNodes[r].parentNode.removeChild(e.childNodes[r]);e.textContent=""}}return this}_.fn=Bi.prototype;var mK="resize scroll".split(" ");function f7(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)mK.indexOf(t)<0&&(t in this[o]?this[o][t]():_(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(r))}}var d7=f7("click"),Fi=f7("focus"),yK="[object GeneratorFunction]",bK=/^(?:0|[1-9]\d*)$/;function wK(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}var bg=Object.prototype,Lb=bg.hasOwnProperty,p7=bg.toString,EK=bg.propertyIsEnumerable,CK=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object);function xK(t,e){var r=g7(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&Rb(u)}(a)&&Lb.call(a,"callee")&&(!EK.call(a,"callee")||p7.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!Lb.call(t,i)||o&&(i=="length"||OK(i,n))||r.push(i);return r}var h7,SK=(h7=function(t,e){return t&&DK(t,e,kK)},function(t,e){if(t==null)return t;if(!Rb(t))return h7(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&e(o[n],n,o)!==!1;);return t}),DK=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return e}}();function AK(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||bg,e!==n)return CK(t);var e,r,n,o=[];for(var i in Object(t))Lb.call(t,i)&&i!="constructor"&&o.push(i);return o}function OK(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||bK.test(t))&&t>-1&&t%1==0&&t<e}var g7=Array.isArray;function Rb(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var r=function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}(e)?p7.call(e):"";return r=="[object Function]"||r==yK}(t)}function kK(t){return Rb(t)?xK(t):AK(t)}function BK(t){return t}var Mb=function(t,e){return(g7(t)?wK:SK)(t,typeof e=="function"?e:BK)};let v7=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e};var _K=/^\s+|\s+$/g,FK=/^[-+]0x[0-9a-f]+$/i,TK=/^0b[01]+$/i,PK=/^0o[0-7]+$/i,NK=parseInt,jK=typeof ae=="object"&&ae&&ae.Object===Object&&ae,IK=typeof self=="object"&&self&&self.Object===Object&&self,LK=jK||IK||Function("return this")(),RK=Object.prototype.toString,MK=Math.max,VK=Math.min,Vb=function(){return LK.Date.now()};function zK(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(w){var E=n,x=o;return n=o=void 0,l=w,a=t.apply(x,E)}function v(w){return l=w,u=setTimeout(m,e),c?p(w):a}function h(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=i}function m(){var w=Vb();if(h(w))return y(w);u=setTimeout(m,function(E){var x=e-(E-s);return f?VK(x,i-(E-l)):x}(w))}function y(w){return u=void 0,d&&n?p(w):(n=o=void 0,a)}function g(){var w=Vb(),E=h(w);if(n=arguments,o=this,s=w,E){if(u===void 0)return v(s);if(f)return u=setTimeout(m,e),p(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=m7(e)||0,wg(r)&&(c=!!r.leading,i=(f="maxWait"in r)?MK(m7(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},g.flush=function(){return u===void 0?a:y(Vb())},g}function wg(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function m7(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&RK.call(n)=="[object Symbol]"}(t))return NaN;if(wg(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=wg(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(_K,"");var r=TK.test(t);return r||PK.test(t)?NK(t.slice(2),r?2:8):FK.test(t)?NaN:+t}var ou=function(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return wg(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),zK(t,e,{leading:n,maxWait:e,trailing:o})};const HK={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function Jc(t,e,r,n,o){return{sel:t,data:e,children:r,text:n,elm:o,key:e===void 0?void 0:e.key}}const zb=Array.isArray;function Eg(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Hb(t){return t===void 0}function nn(t){return t!==void 0}const y7=Jc("",{},[],void 0,void 0);function Qc(t,e){var r,n;const o=t.key===e.key,i=((r=t.data)===null||r===void 0?void 0:r.is)===((n=e.data)===null||n===void 0?void 0:n.is);return t.sel===e.sel&&o&&i}function UK(t,e,r){var n;const o={};for(let i=e;i<=r;++i){const a=(n=t[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const WK=["create","update","remove","destroy","pre","post"];function GK(t,e){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=HK;for(const f of WK)for(const d of t){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return Jc(n.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function a(f,d){var p,v;let h,m=f.data;if(m!==void 0){const w=(p=m.hook)===null||p===void 0?void 0:p.init;nn(w)&&(w(f),m=f.data)}const y=f.children,g=f.sel;if(g==="!")Hb(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(g!==void 0){const w=g.indexOf("#"),E=g.indexOf(".",w),x=w>0?w:g.length,D=E>0?E:g.length,S=w!==-1||E!==-1?g.slice(0,Math.min(x,D)):g,k=f.elm=nn(m)&&nn(h=m.ns)?n.createElementNS(h,S,m):n.createElement(S,m);for(x<D&&k.setAttribute("id",g.slice(x+1,D)),E>0&&k.setAttribute("class",g.slice(D+1).replace(/\./g," ")),h=0;h<r.create.length;++h)r.create[h](y7,f);if(zb(y))for(h=0;h<y.length;++h){const H=y[h];H!=null&&n.appendChild(k,a(H,d))}else Eg(f.text)&&n.appendChild(k,n.createTextNode(f.text));const F=f.data.hook;nn(F)&&((v=F.create)===null||v===void 0||v.call(F,y7,f),F.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,v,h,m){for(;v<=h;++v){const y=p[v];y!=null&&n.insertBefore(f,a(y,m),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let h=0;h<r.destroy.length;++h)r.destroy[h](f);if(f.children!==void 0)for(let h=0;h<f.children.length;++h){const m=f.children[h];m!=null&&typeof m!="string"&&s(m)}}}function l(f,d,p,v){for(var h,m;p<=v;++p){let y,g;const w=d[p];if(w!=null)if(nn(w.sel)){s(w),y=r.remove.length+1,g=i(w.elm,y);for(let x=0;x<r.remove.length;++x)r.remove[x](w,g);const E=(m=(h=w==null?void 0:w.data)===null||h===void 0?void 0:h.hook)===null||m===void 0?void 0:m.remove;nn(E)?E(w,g):g()}else n.removeChild(f,w.elm)}}function c(f,d,p){var v,h,m,y,g;const w=(v=d.data)===null||v===void 0?void 0:v.hook;(h=w==null?void 0:w.prepatch)===null||h===void 0||h.call(w,f,d);const E=d.elm=f.elm,x=f.children,D=d.children;if(f!==d){if(d.data!==void 0){for(let S=0;S<r.update.length;++S)r.update[S](f,d);(y=(m=d.data.hook)===null||m===void 0?void 0:m.update)===null||y===void 0||y.call(m,f,d)}Hb(d.text)?nn(x)&&nn(D)?x!==D&&function(S,k,F,H){let G,j,L,z,K=0,X=0,nt=k.length-1,lt=k[0],st=k[nt],ut=F.length-1,B=F[0],A=F[ut];for(;K<=nt&&X<=ut;)lt==null?lt=k[++K]:st==null?st=k[--nt]:B==null?B=F[++X]:A==null?A=F[--ut]:Qc(lt,B)?(c(lt,B,H),lt=k[++K],B=F[++X]):Qc(st,A)?(c(st,A,H),st=k[--nt],A=F[--ut]):Qc(lt,A)?(c(lt,A,H),n.insertBefore(S,lt.elm,n.nextSibling(st.elm)),lt=k[++K],A=F[--ut]):Qc(st,B)?(c(st,B,H),n.insertBefore(S,st.elm,lt.elm),st=k[--nt],B=F[++X]):(G===void 0&&(G=UK(k,K,nt)),j=G[B.key],Hb(j)?n.insertBefore(S,a(B,H),lt.elm):(L=k[j],L.sel!==B.sel?n.insertBefore(S,a(B,H),lt.elm):(c(L,B,H),k[j]=void 0,n.insertBefore(S,L.elm,lt.elm))),B=F[++X]);(K<=nt||X<=ut)&&(K>nt?(z=F[ut+1]==null?null:F[ut+1].elm,u(S,z,F,X,ut,H)):l(S,k,K,nt))}(E,x,D,p):nn(D)?(nn(f.text)&&n.setTextContent(E,""),u(E,null,D,0,D.length-1,p)):nn(x)?l(E,x,0,x.length-1):nn(f.text)&&n.setTextContent(E,""):f.text!==d.text&&(nn(x)&&l(E,x,0,x.length-1),n.setTextContent(E,d.text)),(g=w==null?void 0:w.postpatch)===null||g===void 0||g.call(w,f,d)}}return function(f,d){let p,v,h;const m=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Qc(f,d)?c(f,d,m):(v=f.elm,h=n.parentNode(v),a(d,m),h!==null&&(n.insertBefore(h,d.elm,n.nextSibling(v)),l(h,[f],0,0))),p=0;p<m.length;++p)m[p].data.hook.insert(m[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function b7(t,e,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){const o=e[n].data;o!==void 0&&b7(o,e[n].children,e[n].sel)}}function Vs(t,e,r){let n,o,i,a={};if(r!==void 0?(e!==null&&(a=e),zb(r)?n=r:Eg(r)?o=r.toString():r&&r.sel&&(n=[r])):e!=null&&(zb(e)?n=e:Eg(e)?o=e.toString():e&&e.sel?n=[e]:a=e),n!==void 0)for(i=0;i<n.length;++i)Eg(n[i])&&(n[i]=Jc(void 0,void 0,void 0,n[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||b7(a,n,t),Jc(t,a,n,o,void 0)}function w7(t,e){let r;const n=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const qK={create:w7,update:w7};function E7(t,e){let r,n;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const KK={create:E7,update:E7},C7=/[A-Z]/g;function x7(t,e){const r=e.elm;let n,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(C7,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(C7,"-$&").toLowerCase(),i[n]))}const YK={create:x7,update:x7};function S7(t,e,r){if(typeof t=="function")t.call(e,r,e);else if(typeof t=="object")for(let n=0;n<t.length;n++)S7(t[n],e,r)}function XK(t,e){const r=t.type,n=e.data.on;n&&n[r]&&S7(n[r],e,t)}function Ub(t,e){const r=t.data.on,n=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=e.listener=t.listener||function l(c){XK(c,l.vnode)};if(s.vnode=e,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const $K={create:Ub,update:Ub,destroy:Ub};function D7(t,e){let r,n,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const ZK={create:D7,update:D7},A7=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Wb=!1;function JK(t,e,r){(function(n){A7(function(){A7(n)})})(function(){t[e]=r})}function O7(t,e){let r,n;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||JK(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const QK={pre:function(){Wb=!1},create:O7,update:O7,destroy:function(t){let e,r;const n=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){const r=t.data.style;if(!r||!r.remove)return void e();let n;Wb||(t.elm.offsetLeft,Wb=!0);const o=t.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function k7(t,e){for(const r of t)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?k7(r,e):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?e.push(Jc(void 0,void 0,void 0,String(r),void 0)):e.push(r));return e}function bt(t,e,...r){const n=k7(r,[]);return typeof t=="function"?t(e,n):n.length===1&&!n[0].sel&&n[0].text?Vs(t,e,n[0].text):Vs(t,e,n)}bt||(bt={});var tY=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eY=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,B7="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rY="[\\ud800-\\udfff]",_7="["+B7+"]",Cg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",F7="\\d+",nY="[\\u2700-\\u27bf]",T7="[a-z\\xdf-\\xf6\\xf8-\\xff]",P7="[^\\ud800-\\udfff"+B7+F7+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Gb="\\ud83c[\\udffb-\\udfff]",N7="[^\\ud800-\\udfff]",qb="(?:\\ud83c[\\udde6-\\uddff]){2}",Kb="[\\ud800-\\udbff][\\udc00-\\udfff]",zs="[A-Z\\xc0-\\xd6\\xd8-\\xde]",j7="(?:"+T7+"|"+P7+")",oY="(?:"+zs+"|"+P7+")",I7="(?:"+Cg+"|"+Gb+")?",L7="[\\ufe0e\\ufe0f]?"+I7+("(?:\\u200d(?:"+[N7,qb,Kb].join("|")+")[\\ufe0e\\ufe0f]?"+I7+")*"),iY="(?:"+[nY,qb,Kb].join("|")+")"+L7,aY="(?:"+[N7+Cg+"?",Cg,qb,Kb,rY].join("|")+")",uY=RegExp("['’]","g"),sY=RegExp(Cg,"g"),lY=RegExp(Gb+"(?="+Gb+")|"+aY+L7,"g"),cY=RegExp([zs+"?"+T7+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[_7,zs,"$"].join("|")+")",oY+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[_7,zs+j7,"$"].join("|")+")",zs+"?"+j7+"+(?:['’](?:d|ll|m|re|s|t|ve))?",zs+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",F7,iY].join("|"),"g"),fY=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),dY=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pY=typeof ae=="object"&&ae&&ae.Object===Object&&ae,hY=typeof self=="object"&&self&&self.Object===Object&&self,gY=pY||hY||Function("return this")(),Yb,vY=(Yb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(t){return Yb==null?void 0:Yb[t]});function R7(t){return fY.test(t)}function mY(t){return R7(t)?function(e){return e.match(lY)||[]}(t):function(e){return e.split("")}(t)}var yY=Object.prototype.toString,M7=gY.Symbol,V7=M7?M7.prototype:void 0,z7=V7?V7.toString:void 0;function bY(t){if(typeof t=="string")return t;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&yY.call(r)=="[object Symbol]"}(t))return z7?z7.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function wY(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,r)}function xg(t){return t==null?"":bY(t)}for(var H7,EY=(H7=function(t,e,r){return e=e.toLowerCase(),t+(r?CY(xg(e).toLowerCase()):e)},function(t){return function(e,r,n,o){var i=-1,a=e?e.length:0;for(o;++i<a;)n=r(n,e[i],i,e);return n}(function(e,r,n){return e=xg(e),(r=r)===void 0?function(o){return dY.test(o)}(e)?function(o){return o.match(cY)||[]}(e):function(o){return o.match(tY)||[]}(e):e.match(r)||[]}(function(e){return(e=xg(e))&&e.replace(eY,vY).replace(sY,"")}(t).replace(uY,"")),H7,"")}),U7,CY=(U7="toUpperCase",function(t){var e=R7(t=xg(t))?mY(t):void 0,r=e?e[0]:t.charAt(0),n=e?wY(e,1).join(""):t.slice(1);return r[U7]()+n}),xY=EY,SY=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Xb={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},W7={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:SY?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},$b={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Sg=1;Sg<20;Sg++)$b["f"+Sg]=111+Sg;function G7(t,e,r){e&&!("byKey"in e)&&(r=e,e=null),Array.isArray(t)||(t=[t]);var n=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in Xb)l[Xb[d]]=!1;var p=!0,v=!1,h=void 0;try{for(var m,y=c[Symbol.iterator]();!(p=(m=y.next()).done);p=!0){var g=m.value,w=g.endsWith("?")&&g.length>1;w&&(g=g.slice(0,-1));var E=q7(g),x=Xb[E];if(g.length>1&&!x&&!W7[g]&&!$b[E])throw new TypeError('Unknown modifier: "'+g+'"');f!==1&&x||(s?l.key=E:l.which=DY(g)),x&&(l[x]=!w||null)}}catch(D){v=!0,h=D}finally{try{!p&&y.return&&y.return()}finally{if(v)throw h}}return l}(i,e)}),o=function(i){return n.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return r==null?o:o(r)}function DY(t){return t=q7(t),$b[t]||t.toUpperCase().charCodeAt(0)}function q7(t){return t=t.toLowerCase(),t=W7[t]||t}var AY=G7,Zb=function(t,e){return G7(t,{byKey:!0},e)},OY=/^\s+|\s+$/g,kY=/^[-+]0x[0-9a-f]+$/i,BY=/^0b[01]+$/i,_Y=/^0o[0-7]+$/i,FY=parseInt,TY=typeof ae=="object"&&ae&&ae.Object===Object&&ae,PY=typeof self=="object"&&self&&self.Object===Object&&self,NY=TY||PY||Function("return this")(),jY=Object.prototype.toString,IY=Math.max,LY=Math.min,Jb=function(){return NY.Date.now()};function Qb(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function K7(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&jY.call(n)=="[object Symbol]"}(t))return NaN;if(Qb(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Qb(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(OY,"");var r=BY.test(t);return r||_Y.test(t)?FY(t.slice(2),r?2:8):kY.test(t)?NaN:+t}var Hs,Y7=function(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(w){var E=n,x=o;return n=o=void 0,l=w,a=t.apply(x,E)}function v(w){return l=w,u=setTimeout(m,e),c?p(w):a}function h(w){var E=w-s;return s===void 0||E>=e||E<0||f&&w-l>=i}function m(){var w=Jb();if(h(w))return y(w);u=setTimeout(m,function(E){var x=e-(E-s);return f?LY(x,i-(E-l)):x}(w))}function y(w){return u=void 0,d&&n?p(w):(n=o=void 0,a)}function g(){var w=Jb(),E=h(w);if(n=arguments,o=this,s=w,E){if(u===void 0)return v(s);if(f)return u=setTimeout(m,e),p(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=K7(e)||0,Qb(r)&&(c=!!r.leading,i=(f="maxWait"in r)?IY(K7(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),g.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},g.flush=function(){return u===void 0?a:y(Jb())},g},X7=Ma(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",h="[object String]",m="[object Symbol]",y="[object WeakMap]",g="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",x="[object Float64Array]",D="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",F="[object Uint8Array]",H="[object Uint8ClampedArray]",G="[object Uint16Array]",j="[object Uint32Array]",L=/\w*$/,z=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,X={};X[o]=X["[object Array]"]=X[g]=X[w]=X[i]=X[a]=X[E]=X[x]=X[D]=X[S]=X[k]=X[l]=X[c]=X[f]=X[p]=X[v]=X[h]=X[m]=X[F]=X[H]=X[G]=X[j]=!0,X["[object Error]"]=X[u]=X[y]=!1;var nt=typeof ae=="object"&&ae&&ae.Object===Object&&ae,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=nt||lt||Function("return this")(),ut=e&&!e.nodeType&&e,B=ut&&t&&!t.nodeType&&t,A=B&&B.exports===ut;function N(T,U){return T.set(U[0],U[1]),T}function W(T,U){return T.add(U),T}function $(T,U,ot,ct){var zt=-1,Ee=T?T.length:0;for(ct;++zt<Ee;)ot=U(ot,T[zt],zt,T);return ot}function q(T){var U=!1;if(T!=null&&typeof T.toString!="function")try{U=!!(T+"")}catch{}return U}function at(T){var U=-1,ot=Array(T.size);return T.forEach(function(ct,zt){ot[++U]=[zt,ct]}),ot}function vt(T,U){return function(ot){return T(U(ot))}}function yt(T){var U=-1,ot=Array(T.size);return T.forEach(function(ct){ot[++U]=ct}),ot}var St=Array.prototype,Y=Function.prototype,Rt=Object.prototype,kt=st["__core-js_shared__"],ht=function(){var T=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),Bt=Y.toString,Pe=Rt.hasOwnProperty,Wt=Rt.toString,ee=RegExp("^"+Bt.call(Pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),we=A?st.Buffer:void 0,Ar=st.Symbol,Vt=st.Uint8Array,Xr=vt(Object.getPrototypeOf,Object),Jn=Object.create,jo=Rt.propertyIsEnumerable,hc=St.splice,ds=Object.getOwnPropertySymbols,Qn=we?we.isBuffer:void 0,Io=vt(Object.keys,Object),di=Lo(st,"DataView"),Or=Lo(st,"Map"),kr=Lo(st,"Promise"),Br=Lo(st,"Set"),jr=Lo(st,"WeakMap"),dr=Lo(Object,"create"),jn=Mo(di),lh=Mo(Or),Na=Mo(kr),pi=Mo(Br),gc=Mo(jr),ps=Ar?Ar.prototype:void 0,vc=ps?ps.valueOf:void 0;function to(T){var U=-1,ot=T?T.length:0;for(this.clear();++U<ot;){var ct=T[U];this.set(ct[0],ct[1])}}function In(T){var U=-1,ot=T?T.length:0;for(this.clear();++U<ot;){var ct=T[U];this.set(ct[0],ct[1])}}function hi(T){var U=-1,ot=T?T.length:0;for(this.clear();++U<ot;){var ct=T[U];this.set(ct[0],ct[1])}}function eo(T){this.__data__=new In(T)}function ja(T,U){var ot=P(T)||function(fe){return function(Yt){return function(nr){return!!nr&&typeof nr=="object"}(Yt)&&M(Yt)}(fe)&&Pe.call(fe,"callee")&&(!jo.call(fe,"callee")||Wt.call(fe)==o)}(T)?function(fe,Yt){for(var nr=-1,_r=Array(fe);++nr<fe;)_r[nr]=Yt(nr);return _r}(T.length,String):[],ct=ot.length,zt=!!ct;for(var Ee in T)!Pe.call(T,Ee)||zt&&(Ee=="length"||Cy(Ee,ct))||ot.push(Ee);return ot}function wy(T,U,ot){var ct=T[U];Pe.call(T,U)&&xy(ct,ot)&&(ot!==void 0||U in T)||(T[U]=ot)}function hn(T,U){for(var ot=T.length;ot--;)if(xy(T[ot][0],U))return ot;return-1}function ch(T,U,ot,ct,zt,Ee,fe){var Yt;if(ct&&(Yt=Ee?ct(T,zt,Ee,fe):ct(T)),Yt!==void 0)return Yt;if(!re(T))return T;var nr=P(T);if(nr){if(Yt=function(Et){var Jt=Et.length,He=Et.constructor(Jt);return Jt&&typeof Et[0]=="string"&&Pe.call(Et,"index")&&(He.index=Et.index,He.input=Et.input),He}(T),!U)return function(Et,Jt){var He=-1,Mt=Et.length;for(Jt||(Jt=Array(Mt));++He<Mt;)Jt[He]=Et[He];return Jt}(T,Yt)}else{var _r=Ro(T),hs=_r==u||_r==s;if(J(T))return function(Et,Jt){if(Jt)return Et.slice();var He=new Et.constructor(Et.length);return Et.copy(He),He}(T,U);if(_r==f||_r==o||hs&&!Ee){if(q(T))return Ee?T:{};if(Yt=function(Et){return typeof Et.constructor!="function"||Ia(Et)?{}:(Jt=Xr(Et),re(Jt)?Jn(Jt):{});var Jt}(hs?{}:T),!U)return function(Et,Jt){return Ey(Et,fh(Et),Jt)}(T,function(Et,Jt){return Et&&Ey(Jt,It(Jt),Et)}(Yt,T))}else{if(!X[_r])return Ee?T:{};Yt=function(Et,Jt,He,Mt){var Xt=Et.constructor;switch(Jt){case g:return mc(Et);case i:case a:return new Xt(+Et);case w:return function($t,Ne){var Ir=Ne?mc($t.buffer):$t.buffer;return new $t.constructor(Ir,$t.byteOffset,$t.byteLength)}(Et,Mt);case E:case x:case D:case S:case k:case F:case H:case G:case j:return function($t,Ne){var Ir=Ne?mc($t.buffer):$t.buffer;return new $t.constructor(Ir,$t.byteOffset,$t.length)}(Et,Mt);case l:return function($t,Ne,Ir){return $(Ne?Ir(at($t),!0):at($t),N,new $t.constructor)}(Et,Mt,He);case c:case h:return new Xt(Et);case p:return function($t){var Ne=new $t.constructor($t.source,L.exec($t));return Ne.lastIndex=$t.lastIndex,Ne}(Et);case v:return function($t,Ne,Ir){return $(Ne?Ir(yt($t),!0):yt($t),W,new $t.constructor)}(Et,Mt,He);case m:return function($t){return vc?Object(vc.call($t)):{}}(Et)}}(T,_r,ch,U)}}fe||(fe=new eo);var mi=fe.get(T);if(mi)return mi;if(fe.set(T,Yt),!nr)var La=ot?function(Et){return function(Jt,He,Mt){var Xt=He(Jt);return P(Jt)?Xt:function($t,Ne){for(var Ir=-1,$r=Ne.length,ro=$t.length;++Ir<$r;)$t[ro+Ir]=Ne[Ir];return $t}(Xt,Mt(Jt))}(Et,It,fh)}(T):It(T);return function(Et,Jt){for(var He=-1,Mt=Et?Et.length:0;++He<Mt&&Jt(Et[He],He,Et)!==!1;);}(La||T,function(Et,Jt){La&&(Et=T[Jt=Et]),wy(Yt,Jt,ch(Et,U,ot,ct,Jt,T,fe))}),Yt}function gi(T){return!(!re(T)||function(U){return!!ht&&ht in U}(T))&&(gt(T)||q(T)?ee:z).test(Mo(T))}function mc(T){var U=new T.constructor(T.byteLength);return new Vt(U).set(new Vt(T)),U}function Ey(T,U,ot,ct){ot||(ot={});for(var zt=-1,Ee=U.length;++zt<Ee;){var fe=U[zt],Yt=void 0;wy(ot,fe,Yt===void 0?T[fe]:Yt)}return ot}function vi(T,U){var ot,ct,zt=T.__data__;return((ct=typeof(ot=U))=="string"||ct=="number"||ct=="symbol"||ct=="boolean"?ot!=="__proto__":ot===null)?zt[typeof U=="string"?"string":"hash"]:zt.map}function Lo(T,U){var ot=function(ct,zt){return ct==null?void 0:ct[zt]}(T,U);return gi(ot)?ot:void 0}to.prototype.clear=function(){this.__data__=dr?dr(null):{}},to.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},to.prototype.get=function(T){var U=this.__data__;if(dr){var ot=U[T];return ot===r?void 0:ot}return Pe.call(U,T)?U[T]:void 0},to.prototype.has=function(T){var U=this.__data__;return dr?U[T]!==void 0:Pe.call(U,T)},to.prototype.set=function(T,U){return this.__data__[T]=dr&&U===void 0?r:U,this},In.prototype.clear=function(){this.__data__=[]},In.prototype.delete=function(T){var U=this.__data__,ot=hn(U,T);return!(ot<0)&&(ot==U.length-1?U.pop():hc.call(U,ot,1),!0)},In.prototype.get=function(T){var U=this.__data__,ot=hn(U,T);return ot<0?void 0:U[ot][1]},In.prototype.has=function(T){return hn(this.__data__,T)>-1},In.prototype.set=function(T,U){var ot=this.__data__,ct=hn(ot,T);return ct<0?ot.push([T,U]):ot[ct][1]=U,this},hi.prototype.clear=function(){this.__data__={hash:new to,map:new(Or||In),string:new to}},hi.prototype.delete=function(T){return vi(this,T).delete(T)},hi.prototype.get=function(T){return vi(this,T).get(T)},hi.prototype.has=function(T){return vi(this,T).has(T)},hi.prototype.set=function(T,U){return vi(this,T).set(T,U),this},eo.prototype.clear=function(){this.__data__=new In},eo.prototype.delete=function(T){return this.__data__.delete(T)},eo.prototype.get=function(T){return this.__data__.get(T)},eo.prototype.has=function(T){return this.__data__.has(T)},eo.prototype.set=function(T,U){var ot=this.__data__;if(ot instanceof In){var ct=ot.__data__;if(!Or||ct.length<199)return ct.push([T,U]),this;ot=this.__data__=new hi(ct)}return ot.set(T,U),this};var fh=ds?vt(ds,Object):function(){return[]},Ro=function(T){return Wt.call(T)};function Cy(T,U){return!!(U=U??n)&&(typeof T=="number"||K.test(T))&&T>-1&&T%1==0&&T<U}function Ia(T){var U=T&&T.constructor;return T===(typeof U=="function"&&U.prototype||Rt)}function Mo(T){if(T!=null){try{return Bt.call(T)}catch{}try{return T+""}catch{}}return""}function xy(T,U){return T===U||T!=T&&U!=U}(di&&Ro(new di(new ArrayBuffer(1)))!=w||Or&&Ro(new Or)!=l||kr&&Ro(kr.resolve())!=d||Br&&Ro(new Br)!=v||jr&&Ro(new jr)!=y)&&(Ro=function(T){var U=Wt.call(T),ot=U==f?T.constructor:void 0,ct=ot?Mo(ot):void 0;if(ct)switch(ct){case jn:return w;case lh:return l;case Na:return d;case pi:return v;case gc:return y}return U});var P=Array.isArray;function M(T){return T!=null&&function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=n}(T.length)&&!gt(T)}var J=Qn||function(){return!1};function gt(T){var U=re(T)?Wt.call(T):"";return U==u||U==s}function re(T){var U=typeof T;return!!T&&(U=="object"||U=="function")}function It(T){return M(T)?ja(T):function(U){if(!Ia(U))return Io(U);var ot=[];for(var ct in Object(U))Pe.call(U,ct)&&ct!="constructor"&&ot.push(ct);return ot}(T)}t.exports=function(T){return ch(T,!0,!0)}});function $7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var RY=0;function MY(t){return"__private_"+RY+++"_"+t}function VY(t,e,r){const n=[];return t.forEach(o=>typeof o!="string"?n.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})),n}/**
16
+ * Takes a string with placeholder variables like `%{smart_count} file selected`
17
+ * and replaces it with values from options `{smart_count: 5}`
18
+ *
19
+ * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
20
+ * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
21
+ *
22
+ * @param {string} phrase that needs interpolation, with placeholders
23
+ * @param {object} options with values that will be used to replace placeholders
24
+ * @returns {any[]} interpolated
25
+ */function Z7(t,e){const r=/\$/g;let n=[t];if(e==null)return n;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=VY(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var J7=(Hs=MY("apply"),class{constructor(t){Object.defineProperty(this,Hs,{value:zY}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach($7(this,Hs)[Hs],this):$7(this,Hs)[Hs](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(e&&e.smart_count!==void 0)return Z7(r[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Z7(r,e)}});function zY(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var Q7=function(){var t={},e=t._fns={};return t.emit=function(r,n,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(e),h=0,m=v.length;h<m;h++){var y=v[h];if(y==="*"&&(f=f.concat(e[y])),p.length===2&&p[0]===y){f=f.concat(e[y]);break}}return f}(r);l.length&&function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(r,l,[n,o,i,a,u,s])},t.on=function(r,n){e[r]||(e[r]=[]),e[r].push(n)},t.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),t.off(r,o)})},t.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},t},HY={nanoid:(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}},t2=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,n));var o=r[n];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function t9(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}t9.prototype.match=function(t){var e,r,n=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(r=(t||"").split(this.separator),e=0;n&&e<i;e++)o[e]!=="*"&&(n=e<r.length&&o[e]===r[e]);n=n&&r}else n=!1;else if(typeof t.splice=="function")for(n=[],e=t.length;e--;)this.match(t[e])&&(n[n.length]=t[e]);else if(typeof t=="object")for(var a in n={},t)this.match(a)&&(n[a]=t[a]);return n};var UY=/[\/\+\.]/,WY=function(t,e){function r(n){var o=function(i,a,u){var s=new t9(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(n,t,UY);return o&&o.length>=2}return e?r(e.split(";")[0]):r},GY=0;function qY(t){return"__private_"+GY+++"_"+t}var e2=qY("publish");class e9{constructor(){Object.defineProperty(this,e2,{value:KY}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const r={...this.state},n={...this.state,...e};this.state=n,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,e2)[e2](r,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function KY(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.callbacks.forEach(n=>{n(...e)})}e9.VERSION="2.0.3";var r9=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},n9={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function o9(t){let e="";return t.replace(/[^A-Z0-9]/gi,r=>(e+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+e}var YY=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const r=e[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function r2(t){return t<10?`0${t}`:t.toString()}var Dg=function(){const t=new Date;return`${r2(t.getHours())}:${r2(t.getMinutes())}:${r2(t.getSeconds())}`},i9={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Dg()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.debug(`[Uppy] [${Dg()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.warn(`[Uppy] [${Dg()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Dg()}]`,...e)}}},XY={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},a9=HY;let u9,s9;function dt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var $Y=0;function We(t){return"__private_"+$Y+++"_"+t}const{nanoid:ZY}=a9,{justErrorsLogger:JY,debugLogger:QY}=i9;class fo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class tX extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var gr=We("plugins"),tf=We("storeUnsubscribe"),Ko=We("emitter"),iu=We("preProcessors"),au=We("uploaders"),Yo=We("postProcessors"),ef=We("checkRestrictions"),n2=We("checkMinNumberOfFiles"),rf=We("checkRequiredMetaFieldsOnFile"),o2=We("checkRequiredMetaFields"),Qe=We("showOrLogErrorAndThrow"),nf=We("assertNewUploadAllowed"),of=We("checkAndCreateFileStateObject"),af=We("startIfAutoProceed"),i2=We("addListeners"),Vn=We("updateOnlineStatus"),Xo=We("createUpload"),a2=We("getUpload"),uu=We("removeUpload"),$o=We("runUpload");u9=Symbol.for("uppy test: getPlugins"),s9=Symbol.for("uppy test: createUpload");class l9{constructor(e){Object.defineProperty(this,$o,{value:pX}),Object.defineProperty(this,uu,{value:dX}),Object.defineProperty(this,a2,{value:fX}),Object.defineProperty(this,Xo,{value:cX}),Object.defineProperty(this,i2,{value:lX}),Object.defineProperty(this,af,{value:sX}),Object.defineProperty(this,of,{value:uX}),Object.defineProperty(this,nf,{value:aX}),Object.defineProperty(this,Qe,{value:iX}),Object.defineProperty(this,o2,{value:oX}),Object.defineProperty(this,rf,{value:nX}),Object.defineProperty(this,n2,{value:rX}),Object.defineProperty(this,ef,{value:eX}),Object.defineProperty(this,gr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,tf,{writable:!0,value:void 0}),Object.defineProperty(this,Ko,{writable:!0,value:Q7()}),Object.defineProperty(this,iu,{writable:!0,value:new Set}),Object.defineProperty(this,au,{writable:!0,value:new Set}),Object.defineProperty(this,Yo,{writable:!0,value:new Set}),Object.defineProperty(this,Vn,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=XY;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:new e9,logger:JY,infoTimeout:5e3};if(this.opts={...r,...e,restrictions:{...r.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=QY),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ou(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:YY(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),dt(this,tf)[tf]=this.store.subscribe((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),dt(this,i2)[i2]()}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];dt(this,Ko)[Ko].emit(e,...n)}on(e,r){return dt(this,Ko)[Ko].on(e,r),this}once(e,r){return dt(this,Ko)[Ko].once(e,r),this}off(e,r){return dt(this,Ko)[Ko].off(e,r),this}updateAll(e){this.iteratePlugins(r=>{r.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,r){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...r}}})}i18nInit(){const e=new J7([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(r=>{r.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(o=>{const i={...r[o]};i.progress={...i.progress,...e},n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){dt(this,iu)[iu].add(e)}removePreProcessor(e){return dt(this,iu)[iu].delete(e)}addPostProcessor(e){dt(this,Yo)[Yo].add(e)}removePostProcessor(e){return dt(this,Yo)[Yo].delete(e)}addUploader(e){dt(this,au)[au].add(e)}removeUploader(e){return dt(this,au)[au].delete(e)}setMeta(e){const r={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(o=>{n[o]={...n[o],meta:{...n[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:r,files:n})}setFileMeta(e,r){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...n[e].meta,...r};n[e]={...n[e],meta:o},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:r,error:n}=this.getState(),o=Object.values(e),i=o.filter(v=>{let{progress:h}=v;return!h.uploadComplete&&h.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(e,r){try{return dt(this,ef)[ef](e,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:r}=this.getState();return!(!r[e]||r[e].isGhost)}addFile(e){dt(this,nf)[nf](e);const{files:r}=this.getState();let n=dt(this,of)[of](r,e);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),dt(this,af)[af](),n.id}addFiles(e){dt(this,nf)[nf]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<e.length;i++)try{let a=dt(this,of)[of](r,e[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
26
+ id: ${n[i].id}
27
+ type: ${n[i].type}`)}),n.length>0&&dt(this,af)[af](),o.length>0){let i=`Multiple errors occurred while adding files:
28
+ `;if(o.forEach(a=>{i+=`
29
+ * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{n[f]&&(u[f]=n[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,r){r===void 0&&(r=null),this.removeFiles([e],r)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const r=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:r}),this.emit("upload-pause",e,r),r}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!0};e[r]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!1,error:null};e[r]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},r=Object.keys(e).filter(o=>e[o].error);if(r.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=dt(this,Xo)[Xo](r,{forceAllowNewUpload:!0});return dt(this,$o)[$o](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),r=Object.keys(e);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const r=dt(this,Xo)[Xo]([e],{forceAllowNewUpload:!0});return dt(this,$o)[$o](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,r){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=e.filter(s=>s.progress.bytesTotal!=null),n=e.filter(s=>s.progress.bytesTotal==null);if(r.length===0){const s=100*e.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach(s=>{a+=s.progress.bytesUploaded}),n.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,r){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
30
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),n.type in dt(this,gr)[gr]?dt(this,gr)[gr][n.type].push(n):dt(this,gr)[gr][n.type]=[n],n.install(),this}getPlugin(e){for(const r of Object.values(dt(this,gr)[gr])){const n=r.find(o=>o.id===e);if(n!=null)return n}}[u9](e){return dt(this,gr)[gr][e]}iteratePlugins(e){Object.values(dt(this,gr)[gr]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const r=dt(this,gr)[gr][e.type],n=r.findIndex(i=>i.id===e.id);n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),dt(this,tf)[tf](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",dt(this,Vn)[Vn]),window.removeEventListener("offline",dt(this,Vn)[Vn]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:r,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,r){const{logger:n}=this.opts;switch(r){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?dt(this,$o)[$o](e):(dt(this,uu)[uu](e),Promise.reject(new Error("Nonexistent upload")))}[s9](){return dt(this,Xo)[Xo](...arguments)}addResultData(e,r){if(!dt(this,a2)[a2](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),o={...n[e],result:{...n[e].result,...r}};this.setState({currentUploads:{...n,[e]:o}})}upload(){var e;(e=dt(this,gr)[gr].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{dt(this,n2)[n2](r),dt(this,o2)[o2](r)}).catch(o=>{dt(this,Qe)[Qe](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(r).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=dt(this,Xo)[Xo](a);return dt(this,$o)[$o](u)}).catch(o=>{dt(this,Qe)[Qe](o,{showInformer:!1})}))}}function eX(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new fo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&WY(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new fo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new fo(this.i18n("exceedsSize",{size:t2(o),file:t.name}))}if(r&&t.size!=null&&t.size>r)throw new fo(this.i18n("exceedsSize",{size:t2(r),file:t.name}));if(n&&t.size!=null&&t.size<n)throw new fo(this.i18n("inferiorSize",{size:t2(n)}))}function rX(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new fo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function nX(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<e.length;i++)if(!r.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new fo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);n.push(a),o.push(e[i]),dt(this,Qe)[Qe](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),n}function oX(t){const e=Object.keys(t).flatMap(r=>{const n=this.getFile(r);return dt(this,rf)[rf](n)});if(e.length)throw new tX(e,`${this.i18n("missingRequiredMetaField")}`)}function iX(t,e){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",n,t)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function aX(t){const{allowNewUpload:e}=this.getState();e===!1&&dt(this,Qe)[Qe](new fo(this.i18n("noMoreFilesAllowed")),{file:t})}function uX(t,e){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=r9(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in n9?n9[p]:"application/octet-stream"}(e),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,e),o=r9(n).extension,i=!!e.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${o9(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${o9(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...e,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new fo(this.i18n("noDuplicates",{fileName:n}));dt(this,Qe)[Qe](f,{file:e})}const u=e.meta||{};u.name=n,u.type=r;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?dt(this,Qe)[Qe](new fo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(d=>t[d]);dt(this,ef)[ef](l,f)}catch(f){dt(this,Qe)[Qe](f,{file:l})}return l}function sX(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function lX(){const t=(e,r,n)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",t),this.on("upload-error",(e,r,n)=>{if(t(r,e,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),dt(this,Qe)[Qe](o,{throwErr:!1})}else dt(this,Qe)[Qe](r,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,r)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:dt(this,Yo)[Yo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&dt(this,rf)[rf](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",dt(this,Vn)[Vn]),window.addEventListener("offline",dt(this,Vn)[Vn]),setTimeout(dt(this,Vn)[Vn],3e3))}function cX(t,e){e===void 0&&(e={});const{forceAllowNewUpload:r=!1}=e,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=ZY();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function fX(t){const{currentUploads:e}=this.getState();return e[t]}function dX(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function pX(t){let{currentUploads:e}=this.getState(),r=e[t];const n=r.step||0,o=[...dt(this,iu)[iu],...dt(this,au)[au],...dt(this,Yo)[Yo]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s={...r,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,r=e[t]}}catch(a){throw this.emit("error",a),dt(this,uu)[uu](t),a}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=r.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,r=e[t]}let i;return r&&(i=r.result,this.emit("complete",i),dt(this,uu)[uu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}l9.VERSION="2.1.3";var c9=l9,hX=Ma(function(t,e){var r,n,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(B,A){for(var N in A)B[N]=A[N];return B}function v(B){var A=B.parentNode;A&&A.removeChild(B)}function h(B,A,N){var W,$,q,at={};for(q in A)q=="key"?W=A[q]:q=="ref"?$=A[q]:at[q]=A[q];if(arguments.length>2&&(at.children=arguments.length>3?r.call(arguments,2):N),typeof B=="function"&&B.defaultProps!=null)for(q in B.defaultProps)at[q]===void 0&&(at[q]=B.defaultProps[q]);return m(B,at,W,$,null)}function m(B,A,N,W,$){var q={type:B,props:A,key:N,ref:W,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:$??++o};return $==null&&n.vnode!=null&&n.vnode(q),q}function y(B){return B.children}function g(B,A){this.props=B,this.context=A}function w(B,A){if(A==null)return B.__?w(B.__,B.__.__k.indexOf(B)+1):null;for(var N;A<B.__k.length;A++)if((N=B.__k[A])!=null&&N.__e!=null)return N.__e;return typeof B.type=="function"?w(B):null}function E(B){var A,N;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,A=0;A<B.__k.length;A++)if((N=B.__k[A])!=null&&N.__e!=null){B.__e=B.__c.base=N.__e;break}return E(B)}}function x(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!D.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(D)}function D(){for(var B;D.__r=a.length;)B=a.sort(function(A,N){return A.__v.__b-N.__v.__b}),a=[],B.some(function(A){var N,W,$,q,at,vt;A.__d&&(at=(q=(N=A).__v).__e,(vt=N.__P)&&(W=[],($=p({},q)).__v=q.__v+1,z(vt,q,$,N.__n,vt.ownerSVGElement!==void 0,q.__h!=null?[at]:null,W,at??w(q),q.__h),K(W,q),q.__e!=at&&E(q)))})}function S(B,A,N,W,$,q,at,vt,yt,St){var Y,Rt,kt,ht,Bt,Pe,Wt,ee=W&&W.__k||f,we=ee.length;for(N.__k=[],Y=0;Y<A.length;Y++)if((ht=N.__k[Y]=(ht=A[Y])==null||typeof ht=="boolean"?null:typeof ht=="string"||typeof ht=="number"||typeof ht=="bigint"?m(null,ht,null,null,ht):Array.isArray(ht)?m(y,{children:ht},null,null,null):ht.__b>0?m(ht.type,ht.props,ht.key,null,ht.__v):ht)!=null){if(ht.__=N,ht.__b=N.__b+1,(kt=ee[Y])===null||kt&&ht.key==kt.key&&ht.type===kt.type)ee[Y]=void 0;else for(Rt=0;Rt<we;Rt++){if((kt=ee[Rt])&&ht.key==kt.key&&ht.type===kt.type){ee[Rt]=void 0;break}kt=null}z(B,ht,kt=kt||c,$,q,at,vt,yt,St),Bt=ht.__e,(Rt=ht.ref)&&kt.ref!=Rt&&(Wt||(Wt=[]),kt.ref&&Wt.push(kt.ref,null,ht),Wt.push(Rt,ht.__c||Bt,ht)),Bt!=null?(Pe==null&&(Pe=Bt),typeof ht.type=="function"&&ht.__k===kt.__k?ht.__d=yt=k(ht,yt,B):yt=F(B,ht,kt,ee,Bt,yt),typeof N.type=="function"&&(N.__d=yt)):yt&&kt.__e==yt&&yt.parentNode!=B&&(yt=w(kt))}for(N.__e=Pe,Y=we;Y--;)ee[Y]!=null&&(typeof N.type=="function"&&ee[Y].__e!=null&&ee[Y].__e==N.__d&&(N.__d=w(W,Y+1)),lt(ee[Y],ee[Y]));if(Wt)for(Y=0;Y<Wt.length;Y++)nt(Wt[Y],Wt[++Y],Wt[++Y])}function k(B,A,N){for(var W,$=B.__k,q=0;$&&q<$.length;q++)(W=$[q])&&(W.__=B,A=typeof W.type=="function"?k(W,A,N):F(N,W,W,$,W.__e,A));return A}function F(B,A,N,W,$,q){var at,vt,yt;if(A.__d!==void 0)at=A.__d,A.__d=void 0;else if(N==null||$!=q||$.parentNode==null)t:if(q==null||q.parentNode!==B)B.appendChild($),at=null;else{for(vt=q,yt=0;(vt=vt.nextSibling)&&yt<W.length;yt+=2)if(vt==$)break t;B.insertBefore($,q),at=q}return at!==void 0?at:$.nextSibling}function H(B,A,N){A[0]==="-"?B.setProperty(A,N):B[A]=N==null?"":typeof N!="number"||d.test(A)?N:N+"px"}function G(B,A,N,W,$){var q;t:if(A==="style")if(typeof N=="string")B.style.cssText=N;else{if(typeof W=="string"&&(B.style.cssText=W=""),W)for(A in W)N&&A in N||H(B.style,A,"");if(N)for(A in N)W&&N[A]===W[A]||H(B.style,A,N[A])}else if(A[0]==="o"&&A[1]==="n")q=A!==(A=A.replace(/Capture$/,"")),A=A.toLowerCase()in B?A.toLowerCase().slice(2):A.slice(2),B.l||(B.l={}),B.l[A+q]=N,N?W||B.addEventListener(A,q?L:j,q):B.removeEventListener(A,q?L:j,q);else if(A!=="dangerouslySetInnerHTML"){if($)A=A.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(A!=="href"&&A!=="list"&&A!=="form"&&A!=="tabIndex"&&A!=="download"&&A in B)try{B[A]=N??"";break t}catch{}typeof N=="function"||(N!=null&&(N!==!1||A[0]==="a"&&A[1]==="r")?B.setAttribute(A,N):B.removeAttribute(A))}}function j(B){this.l[B.type+!1](n.event?n.event(B):B)}function L(B){this.l[B.type+!0](n.event?n.event(B):B)}function z(B,A,N,W,$,q,at,vt,yt){var St,Y,Rt,kt,ht,Bt,Pe,Wt,ee,we,Ar,Vt=A.type;if(A.constructor!==void 0)return null;N.__h!=null&&(yt=N.__h,vt=A.__e=N.__e,A.__h=null,q=[vt]),(St=n.__b)&&St(A);try{t:if(typeof Vt=="function"){if(Wt=A.props,ee=(St=Vt.contextType)&&W[St.__c],we=St?ee?ee.props.value:St.__:W,N.__c?Pe=(Y=A.__c=N.__c).__=Y.__E:("prototype"in Vt&&Vt.prototype.render?A.__c=Y=new Vt(Wt,we):(A.__c=Y=new g(Wt,we),Y.constructor=Vt,Y.render=st),ee&&ee.sub(Y),Y.props=Wt,Y.state||(Y.state={}),Y.context=we,Y.__n=W,Rt=Y.__d=!0,Y.__h=[]),Y.__s==null&&(Y.__s=Y.state),Vt.getDerivedStateFromProps!=null&&(Y.__s==Y.state&&(Y.__s=p({},Y.__s)),p(Y.__s,Vt.getDerivedStateFromProps(Wt,Y.__s))),kt=Y.props,ht=Y.state,Rt)Vt.getDerivedStateFromProps==null&&Y.componentWillMount!=null&&Y.componentWillMount(),Y.componentDidMount!=null&&Y.__h.push(Y.componentDidMount);else{if(Vt.getDerivedStateFromProps==null&&Wt!==kt&&Y.componentWillReceiveProps!=null&&Y.componentWillReceiveProps(Wt,we),!Y.__e&&Y.shouldComponentUpdate!=null&&Y.shouldComponentUpdate(Wt,Y.__s,we)===!1||A.__v===N.__v){Y.props=Wt,Y.state=Y.__s,A.__v!==N.__v&&(Y.__d=!1),Y.__v=A,A.__e=N.__e,A.__k=N.__k,A.__k.forEach(function(Xr){Xr&&(Xr.__=A)}),Y.__h.length&&at.push(Y);break t}Y.componentWillUpdate!=null&&Y.componentWillUpdate(Wt,Y.__s,we),Y.componentDidUpdate!=null&&Y.__h.push(function(){Y.componentDidUpdate(kt,ht,Bt)})}Y.context=we,Y.props=Wt,Y.state=Y.__s,(St=n.__r)&&St(A),Y.__d=!1,Y.__v=A,Y.__P=B,St=Y.render(Y.props,Y.state,Y.context),Y.state=Y.__s,Y.getChildContext!=null&&(W=p(p({},W),Y.getChildContext())),Rt||Y.getSnapshotBeforeUpdate==null||(Bt=Y.getSnapshotBeforeUpdate(kt,ht)),Ar=St!=null&&St.type===y&&St.key==null?St.props.children:St,S(B,Array.isArray(Ar)?Ar:[Ar],A,N,W,$,q,at,vt,yt),Y.base=A.__e,A.__h=null,Y.__h.length&&at.push(Y),Pe&&(Y.__E=Y.__=null),Y.__e=!1}else q==null&&A.__v===N.__v?(A.__k=N.__k,A.__e=N.__e):A.__e=X(N.__e,A,N,W,$,q,at,yt);(St=n.diffed)&&St(A)}catch(Xr){A.__v=null,(yt||q!=null)&&(A.__e=vt,A.__h=!!yt,q[q.indexOf(vt)]=null),n.__e(Xr,A,N)}}function K(B,A){n.__c&&n.__c(A,B),B.some(function(N){try{B=N.__h,N.__h=[],B.some(function(W){W.call(N)})}catch(W){n.__e(W,N.__v)}})}function X(B,A,N,W,$,q,at,vt){var yt,St,Y,Rt=N.props,kt=A.props,ht=A.type,Bt=0;if(ht==="svg"&&($=!0),q!=null){for(;Bt<q.length;Bt++)if((yt=q[Bt])&&"setAttribute"in yt==!!ht&&(ht?yt.localName===ht:yt.nodeType===3)){B=yt,q[Bt]=null;break}}if(B==null){if(ht===null)return document.createTextNode(kt);B=$?document.createElementNS("http://www.w3.org/2000/svg",ht):document.createElement(ht,kt.is&&kt),q=null,vt=!1}if(ht===null)Rt===kt||vt&&B.data===kt||(B.data=kt);else{if(q=q&&r.call(B.childNodes),St=(Rt=N.props||c).dangerouslySetInnerHTML,Y=kt.dangerouslySetInnerHTML,!vt){if(q!=null)for(Rt={},Bt=0;Bt<B.attributes.length;Bt++)Rt[B.attributes[Bt].name]=B.attributes[Bt].value;(Y||St)&&(Y&&(St&&Y.__html==St.__html||Y.__html===B.innerHTML)||(B.innerHTML=Y&&Y.__html||""))}if(function(Pe,Wt,ee,we,Ar){var Vt;for(Vt in ee)Vt==="children"||Vt==="key"||Vt in Wt||G(Pe,Vt,null,ee[Vt],we);for(Vt in Wt)Ar&&typeof Wt[Vt]!="function"||Vt==="children"||Vt==="key"||Vt==="value"||Vt==="checked"||ee[Vt]===Wt[Vt]||G(Pe,Vt,Wt[Vt],ee[Vt],we)}(B,kt,Rt,$,vt),Y)A.__k=[];else if(Bt=A.props.children,S(B,Array.isArray(Bt)?Bt:[Bt],A,N,W,$&&ht!=="foreignObject",q,at,q?q[0]:N.__k&&w(N,0),vt),q!=null)for(Bt=q.length;Bt--;)q[Bt]!=null&&v(q[Bt]);vt||("value"in kt&&(Bt=kt.value)!==void 0&&(Bt!==Rt.value||Bt!==B.value||ht==="progress"&&!Bt)&&G(B,"value",Bt,Rt.value,!1),"checked"in kt&&(Bt=kt.checked)!==void 0&&Bt!==B.checked&&G(B,"checked",Bt,Rt.checked,!1))}return B}function nt(B,A,N){try{typeof B=="function"?B(A):B.current=A}catch(W){n.__e(W,N)}}function lt(B,A,N){var W,$;if(n.unmount&&n.unmount(B),(W=B.ref)&&(W.current&&W.current!==B.__e||nt(W,null,A)),(W=B.__c)!=null){if(W.componentWillUnmount)try{W.componentWillUnmount()}catch(q){n.__e(q,A)}W.base=W.__P=null}if(W=B.__k)for($=0;$<W.length;$++)W[$]&&lt(W[$],A,typeof B.type!="function");N||B.__e==null||v(B.__e),B.__e=B.__d=void 0}function st(B,A,N){return this.constructor(B,N)}function ut(B,A,N){var W,$,q;n.__&&n.__(B,A),$=(W=typeof N=="function")?null:N&&N.__k||A.__k,q=[],z(A,B=(!W&&N||A).__k=h(y,null,[B]),$||c,c,A.ownerSVGElement!==void 0,!W&&N?[N]:$?null:A.firstChild?r.call(A.childNodes):null,q,!W&&N?N:$?$.__e:A.firstChild,W),K(q,B)}r=f.slice,n={__e:function(B,A){for(var N,W,$;A=A.__;)if((N=A.__c)&&!N.__)try{if((W=N.constructor)&&W.getDerivedStateFromError!=null&&(N.setState(W.getDerivedStateFromError(B)),$=N.__d),N.componentDidCatch!=null&&(N.componentDidCatch(B),$=N.__d),$)return N.__E=N}catch(q){B=q}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},g.prototype.setState=function(B,A){var N;N=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof B=="function"&&(B=B(p({},N),this.props)),B&&p(N,B),B!=null&&this.__v&&(A&&this.__h.push(A),x(this))},g.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),x(this))},g.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,e.Component=g,e.Fragment=y,e.cloneElement=function(B,A,N){var W,$,q,at=p({},B.props);for(q in A)q=="key"?W=A[q]:q=="ref"?$=A[q]:at[q]=A[q];return arguments.length>2&&(at.children=arguments.length>3?r.call(arguments,2):N),m(B.type,at,W||B.key,$||B.ref,null)},e.createContext=function(B,A){var N={__c:A="__cC"+l++,__:B,Consumer:function(W,$){return W.children($)},Provider:function(W){var $,q;return this.getChildContext||($=[],(q={})[A]=this,this.getChildContext=function(){return q},this.shouldComponentUpdate=function(at){this.props.value!==at.value&&$.some(x)},this.sub=function(at){$.push(at);var vt=at.componentWillUnmount;at.componentWillUnmount=function(){$.splice($.indexOf(at),1),vt&&vt.call(at)}}),W.children}};return N.Provider.__=N.Consumer.contextType=N},e.createElement=h,e.createRef=function(){return{current:null}},e.h=h,e.hydrate=function B(A,N){ut(A,N,B)},e.isValidElement=i,e.options=n,e.render=ut,e.toChildArray=function B(A,N){return N=N||[],A==null||typeof A=="boolean"||(Array.isArray(A)?A.some(function(W){B(W,N)}):N.push(A)),N}}),gX=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((r=t)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?t:null;var r},u2=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new J7([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function f9(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var vX=0;function mX(t){return"__private_"+vX+++"_"+t}const{render:d9}=hX;var uf=mX("updateUI");class s2 extends u2{constructor(){super(...arguments),Object.defineProperty(this,uf,{writable:!0,value:void 0})}mount(e,r){const n=r.id,o=gX(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return f9(this,uf)[uf]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(d9(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),d9(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof s2)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(e){var r,n;this.el!=null&&((r=(n=f9(this,uf))[uf])==null||r.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var yX=s2;const{debugLogger:bX}=i9;var sf=c9,wX=c9,EX=yX,CX=u2,xX=bX;sf.Uppy=wX,sf.UIPlugin=EX,sf.BasePlugin=CX,sf.debugLogger=xX;class SX extends Error{constructor(e,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=r}}var l2=SX,c2=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new l2(t)})};class DX extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Ag,Ti,po,Pi,p9,AX=DX;function ho(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var OX=0;function f2(t){return"__private_"+OX+++"_"+t}async function d2(t){if(t.status===401)throw new AX;const e=t.json();if(t.status<200||t.status>300){let r=`Failed request with status: ${t.status}. ${t.statusText}`;try{const n=await e;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return e}var h9=(Ti=f2("getPostResponseFunc"),po=f2("getUrl"),Pi=f2("errorHandler"),p9=Ag=class KV{constructor(e,r){Object.defineProperty(this,Pi,{value:BX}),Object.defineProperty(this,po,{value:kX}),Object.defineProperty(this,Ti,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),r=this.opts.companionUrl;return(e&&e[r]?e[r]:r).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...KV.defaultHeaders,...e})}onReceiveResponse(e){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(ho(this,po)[po](e),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,r){return this.preflightAndHeaders(e).then(n=>c2(ho(this,po)[po](e),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(ho(this,Ti)[Ti](r)).then(d2).catch(ho(this,Pi)[Pi]("get",e))}post(e,r,n){const o="post";return this.preflightAndHeaders(e).then(i=>c2(ho(this,po)[po](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(ho(this,Ti)[Ti](n)).then(d2).catch(ho(this,Pi)[Pi](o,e))}delete(e,r,n){const o="delete";return this.preflightAndHeaders(e).then(i=>c2(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(ho(this,Ti)[Ti](n)).then(d2).catch(ho(this,Pi)[Pi](o,e))}},Ag.VERSION="2.0.4",Ag.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Ag.VERSION}`},p9);function kX(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function BX(t,e){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${t} ${ho(this,po)[po](e)}`);o.cause=r,r=o}return Promise.reject(r)}}var _X={setItem:(t,e)=>new Promise(r=>{localStorage.setItem(t,e),r()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},go,Ni,yn,br,Og;let g9,v9;function Ge(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var FX=0;function lf(t){return"__private_"+FX+++"_"+t}var TX=(go=lf("queued"),Ni=lf("emitter"),yn=lf("isOpen"),br=lf("socket"),Og=lf("handleMessage"),g9=Symbol.for("uppy test: getSocket"),v9=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,go,{writable:!0,value:[]}),Object.defineProperty(this,Ni,{writable:!0,value:Q7()}),Object.defineProperty(this,yn,{writable:!0,value:!1}),Object.defineProperty(this,br,{writable:!0,value:void 0}),Object.defineProperty(this,Og,{writable:!0,value:e=>{try{const r=JSON.parse(e.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return Ge(this,yn)[yn]}[g9](){return Ge(this,br)[br]}[v9](){return Ge(this,go)[go]}open(){Ge(this,br)[br]=new WebSocket(this.opts.target),Ge(this,br)[br].onopen=()=>{for(Ge(this,yn)[yn]=!0;Ge(this,go)[go].length>0&&Ge(this,yn)[yn];){const t=Ge(this,go)[go].shift();this.send(t.action,t.payload)}},Ge(this,br)[br].onclose=()=>{Ge(this,yn)[yn]=!1},Ge(this,br)[br].onmessage=Ge(this,Og)[Og]}close(){var t;(t=Ge(this,br)[br])==null||t.close()}send(t,e){Ge(this,yn)[yn]?Ge(this,br)[br].send(JSON.stringify({action:t,payload:e})):Ge(this,go)[go].push({action:t,payload:e})}on(t,e){Ge(this,Ni)[Ni].on(t,e)}emit(t,e){Ge(this,Ni)[Ni].emit(t,e)}once(t,e){Ge(this,Ni)[Ni].once(t,e)}}),PX={RequestClient:h9,Provider:class extends h9{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,r]=t;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),r=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:r}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...e}),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const n=e.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||_X}},Socket:TX},ji,Us,NX=ou(function(t,e,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=e;n&&(t.uppy.log(`Upload progress: ${n}`),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function cf(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var jX=0;function m9(t){return"__private_"+jX+++"_"+t}var y9=(ji=m9("emitter"),Us=m9("events"),class{constructor(t){Object.defineProperty(this,ji,{writable:!0,value:void 0}),Object.defineProperty(this,Us,{writable:!0,value:[]}),cf(this,ji)[ji]=t}on(t,e){return cf(this,Us)[Us].push([t,e]),cf(this,ji)[ji].on(t,e)}remove(){for(const[t,e]of cf(this,Us)[Us].splice(0))cf(this,ji)[ji].off(t,e)}});function bn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var IX=0;function kg(t){return"__private_"+IX+++"_"+t}var Zo=kg("aliveTimer"),su=kg("isDone"),ff=kg("onTimedOut"),lu=kg("timeout"),b9=class{constructor(t,e){Object.defineProperty(this,Zo,{writable:!0,value:void 0}),Object.defineProperty(this,su,{writable:!0,value:!1}),Object.defineProperty(this,ff,{writable:!0,value:void 0}),Object.defineProperty(this,lu,{writable:!0,value:void 0}),bn(this,lu)[lu]=t,bn(this,ff)[ff]=e}progress(){bn(this,su)[su]||bn(this,lu)[lu]>0&&(clearTimeout(bn(this,Zo)[Zo]),bn(this,Zo)[Zo]=setTimeout(bn(this,ff)[ff],bn(this,lu)[lu]))}done(){bn(this,su)[su]||(clearTimeout(bn(this,Zo)[Zo]),bn(this,Zo)[Zo]=null,bn(this,su)[su]=!0)}};function qe(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var LX=0;function cu(t){return"__private_"+LX+++"_"+t}function RX(){return new Error("Cancelled")}var on=cu("activeRequests"),Pr=cu("queuedHandlers"),df=cu("call"),pf=cu("queueNext"),p2=cu("next"),h2=cu("queue"),g2=cu("dequeue");function MX(t){qe(this,on)[on]+=1;let e,r=!1;try{e=t()}catch(n){throw qe(this,on)[on]-=1,n}return{abort:()=>{r||(r=!0,qe(this,on)[on]-=1,e(),qe(this,pf)[pf]())},done:()=>{r||(r=!0,qe(this,on)[on]-=1,qe(this,pf)[pf]())}}}function VX(){queueMicrotask(()=>qe(this,p2)[p2]())}function zX(){if(qe(this,on)[on]>=this.limit||qe(this,Pr)[Pr].length===0)return;const t=qe(this,Pr)[Pr].shift(),e=qe(this,df)[df](t.fn);t.abort=e.abort,t.done=e.done}function HX(t,e){e===void 0&&(e={});const r={fn:t,priority:e.priority||0,abort:()=>{qe(this,g2)[g2](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=qe(this,Pr)[Pr].findIndex(o=>r.priority>o.priority);return n===-1?qe(this,Pr)[Pr].push(r):qe(this,Pr)[Pr].splice(n,0,r),r}function UX(t){const e=qe(this,Pr)[Pr].indexOf(t);e!==-1&&qe(this,Pr)[Pr].splice(e,1)}var WX={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,g2,{value:UX}),Object.defineProperty(this,h2,{value:HX}),Object.defineProperty(this,p2,{value:zX}),Object.defineProperty(this,pf,{value:VX}),Object.defineProperty(this,df,{value:MX}),Object.defineProperty(this,on,{writable:!0,value:0}),Object.defineProperty(this,Pr,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return qe(this,on)[on]<this.limit?qe(this,df)[df](t):qe(this,h2)[h2](t,e)}wrapPromiseFunction(t,e){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=r.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),s(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=RX()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},w9,E9,C9=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},GX={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:qX}=a9,{Provider:KX,RequestClient:YX,Socket:XX}=PX,{RateLimitedQueue:$X,internalRateLimitedQueue:v2}=WX;function x9(t,e){let r=e;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),C9(t)?(r=new l2(r,t),r):(r.request=t,r)}function S9(t){return t.data.slice(0,t.data.size,t.meta.type)}var ZX=(E9=w9=class extends u2{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=GX;const r={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){t.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return C9(o)&&(i=new l2(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),v2 in this.opts?this.requests=this.opts[v2]:this.requests=new $X(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(t):Object.assign(n.headers,this.opts.headers),e&&Object.assign(n.headers,e.headers),t.xhrUpload&&Object.assign(n.headers,t.xhrUpload.headers),n}addMetadata(t,e,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(e)).forEach(n=>{t.append(n,e[n])})}createFormDataUpload(t,e){const r=new FormData;this.addMetadata(r,t.meta,e);const n=S9(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}createBundledUpload(t,e){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,e),t.forEach(o=>{const i=this.getOptions(o),a=S9(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)}),r}upload(t,e,r){const n=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${r}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=n.formData?this.createFormDataUpload(t,n):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new y9(this.uppy);const s=new b9(n.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=qX();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n.validateStatus(f.target.status,u.responseText,u)){const h=n.getResponseData(u.responseText,u),m=h[n.responseUrlFieldName],y={status:f.target.status,body:h,uploadURL:m};return this.uppy.emit("upload-success",t,y),m&&this.uppy.log(`Download ${t.name} from ${m}`),o(t)}const d=n.getResponseData(u.responseText,u),p=x9(u,n.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,v),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=x9(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((r,n)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?KX:YX)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new XX({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new y9(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>NX(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),s.on("error",c=>{const f=c.response,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n(d)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),n(i)})})}uploadBundle(t){return new Promise((e,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new b9(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach(v=>{this.uppy.emit("upload-success",v,p)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),n,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((r,n)=>{const o=parseInt(n,10)+1,i=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)});return function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map(u=>u.then(i,a))).then(()=>({successful:n,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&e(r.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[v2]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(e.some(r=>r.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},w9.VERSION="2.0.6",E9),D9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hf(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ii,Bg,_g=function(t){return t&&t.Math==Math&&t},Z=_g(typeof globalThis=="object"&&globalThis)||_g(typeof window=="object"&&window)||_g(typeof self=="object"&&self)||_g(typeof D9=="object"&&D9)||function(){return this}()||Function("return this")(),JX=Object.defineProperty,m2=function(t,e){try{JX(Z,t,{value:e,configurable:!0,writable:!0})}catch{Z[t]=e}return e},Li=Z["__core-js_shared__"]||m2("__core-js_shared__",{}),y2=hf(function(t){(t.exports=function(e,r){return Li[e]||(Li[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),A9=Function.prototype,b2=A9.bind,w2=A9.call,QX=b2&&b2.bind(w2),pt=b2?function(t){return t&&QX(w2,t)}:function(t){return t&&function(){return w2.apply(t,arguments)}},t$=Z.TypeError,wn=function(t){if(t==null)throw t$("Can't call method on "+t);return t},e$=Z.Object,Ri=function(t){return e$(wn(t))},r$=pt({}.hasOwnProperty),Ie=Object.hasOwn||function(t,e){return r$(Ri(t),e)},n$=0,o$=Math.random(),i$=pt(1 .toString),E2=function(t){return"Symbol("+(t===void 0?"":t)+")_"+i$(++n$+o$,36)},oe=function(t){return typeof t=="function"},a$=function(t){return oe(t)?t:void 0},fu=function(t,e){return arguments.length<2?a$(Z[t]):Z[t]&&Z[t][e]},Ws=fu("navigator","userAgent")||"",O9=Z.process,k9=Z.Deno,B9=O9&&O9.versions||k9&&k9.version,_9=B9&&B9.v8;_9&&(Bg=(Ii=_9.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!Bg&&Ws&&(!(Ii=Ws.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=Ws.match(/Chrome\/(\d+)/))&&(Bg=+Ii[1]);var gf=Bg,Zt=function(t){try{return!!t()}catch{return!0}},C2=!!Object.getOwnPropertySymbols&&!Zt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&gf&&gf<41}),x2=C2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vf=y2("wks"),du=Z.Symbol,F9=du&&du.for,u$=x2?du:du&&du.withoutSetter||E2,xe=function(t){if(!Ie(vf,t)||!C2&&typeof vf[t]!="string"){var e="Symbol."+t;C2&&Ie(du,t)?vf[t]=du[t]:vf[t]=x2&&F9?F9(e):u$(e)}return vf[t]},T9={};T9[xe("toStringTag")]="z";var S2=String(T9)==="[object z]",ir=!Zt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pe=function(t){return typeof t=="object"?t!==null:oe(t)},D2=Z.document,s$=pe(D2)&&pe(D2.createElement),mf=function(t){return s$?D2.createElement(t):{}},P9=!ir&&!Zt(function(){return Object.defineProperty(mf("div"),"a",{get:function(){return 7}}).a!=7}),l$=Z.String,c$=Z.TypeError,Le=function(t){if(pe(t))return t;throw c$(l$(t)+" is not an object")},yf=Function.prototype.call,Gt=yf.bind?yf.bind(yf):function(){return yf.apply(yf,arguments)},pu=pt({}.isPrototypeOf),f$=Z.Object,A2=x2?function(t){return typeof t=="symbol"}:function(t){var e=fu("Symbol");return oe(e)&&pu(e.prototype,f$(t))},d$=Z.String,Fg=function(t){try{return d$(t)}catch{return"Object"}},p$=Z.TypeError,Mi=function(t){if(oe(t))return t;throw p$(Fg(t)+" is not a function")},hu=function(t,e){var r=t[e];return r==null?void 0:Mi(r)},h$=Z.TypeError,g$=Z.TypeError,v$=xe("toPrimitive"),O2=function(t){var e=function(r,n){if(!pe(r)||A2(r))return r;var o,i=hu(r,v$);if(i){if(o=Gt(i,r,n),!pe(o)||A2(o))return o;throw g$("Can't convert object to primitive value")}return function(a,u){var s,l;if(oe(s=a.toString)&&!pe(l=Gt(s,a))||oe(s=a.valueOf)&&!pe(l=Gt(s,a)))return l;throw h$("Can't convert object to primitive value")}(r)}(t,"string");return A2(e)?e:e+""},m$=Z.TypeError,N9=Object.defineProperty,zn={f:ir?N9:function(t,e,r){if(Le(t),e=O2(e),Le(r),P9)try{return N9(t,e,r)}catch{}if("get"in r||"set"in r)throw m$("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Tg=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Hn=ir?function(t,e,r){return zn.f(t,e,Tg(1,r))}:function(t,e,r){return t[e]=r,t},y$=pt(Function.toString);oe(Li.inspectSource)||(Li.inspectSource=function(t){return y$(t)});var Pg,bf,Ng,jg=Li.inspectSource,j9=Z.WeakMap,I9=oe(j9)&&/native code/.test(jg(j9)),L9=y2("keys"),k2=function(t){return L9[t]||(L9[t]=E2(t))},Ig={},B2=Z.TypeError,b$=Z.WeakMap;if(I9||Li.state){var gu=Li.state||(Li.state=new b$),w$=pt(gu.get),R9=pt(gu.has),E$=pt(gu.set);Pg=function(t,e){if(R9(gu,t))throw new B2("Object already initialized");return e.facade=t,E$(gu,t,e),e},bf=function(t){return w$(gu,t)||{}},Ng=function(t){return R9(gu,t)}}else{var Gs=k2("state");Ig[Gs]=!0,Pg=function(t,e){if(Ie(t,Gs))throw new B2("Object already initialized");return e.facade=t,Hn(t,Gs,e),e},bf=function(t){return Ie(t,Gs)?t[Gs]:{}},Ng=function(t){return Ie(t,Gs)}}var wr={set:Pg,get:bf,has:Ng,enforce:function(t){return Ng(t)?bf(t):Pg(t,{})},getterFor:function(t){return function(e){var r;if(!pe(e)||(r=bf(e)).type!==t)throw B2("Incompatible receiver, "+t+" required");return r}}},M9=Function.prototype,C$=ir&&Object.getOwnPropertyDescriptor,_2=Ie(M9,"name"),qs={EXISTS:_2,PROPER:_2&&(function(){}).name==="something",CONFIGURABLE:_2&&(!ir||ir&&C$(M9,"name").configurable)},Hr=hf(function(t){var e=qs.CONFIGURABLE,r=wr.get,n=wr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;oe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ie(u,"name")||e&&u.name!==p)&&Hn(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Z?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Hn(i,a,u)):f?i[a]=u:m2(a,u)})(Function.prototype,"toString",function(){return oe(this)&&r(this).source||jg(this)})}),x$=pt({}.toString),S$=pt("".slice),Un=function(t){return S$(x$(t),8,-1)},D$=xe("toStringTag"),A$=Z.Object,O$=Un(function(){return arguments}())=="Arguments",Lg=S2?Un:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=A$(t),D$))=="string"?r:O$?Un(e):(n=Un(e))=="Object"&&oe(e.callee)?"Arguments":n},k$=S2?{}.toString:function(){return"[object "+Lg(this)+"]"};S2||Hr(Object.prototype,"toString",k$,{unsafe:!0});var Rg={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},F2=mf("span").classList,V9=F2&&F2.constructor&&F2.constructor.prototype,z9=V9===Object.prototype?void 0:V9,H9=pt(pt.bind),vu=function(t,e){return Mi(t),e===void 0?t:H9?H9(t,e):function(){return t.apply(e,arguments)}},T2=Z.Object,B$=pt("".split),Mg=Zt(function(){return!T2("z").propertyIsEnumerable(0)})?function(t){return Un(t)=="String"?B$(t,""):T2(t)}:T2,_$=Math.ceil,F$=Math.floor,wf=function(t){var e=+t;return e!=e||e===0?0:(e>0?F$:_$)(e)},T$=Math.min,Ks=function(t){return t>0?T$(wf(t),9007199254740991):0},mu=function(t){return Ks(t.length)},Vg=Array.isArray||function(t){return Un(t)=="Array"},U9=function(){},P$=[],W9=fu("Reflect","construct"),P2=/^\s*(?:class|function)\b/,N$=pt(P2.exec),j$=!P2.exec(U9),Ef=function(t){if(!oe(t))return!1;try{return W9(U9,P$,t),!0}catch{return!1}},zg=!W9||Zt(function(){var t;return Ef(Ef.call)||!Ef(Object)||!Ef(function(){t=!0})||t})?function(t){if(!oe(t))return!1;switch(Lg(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return j$||!!N$(P2,jg(t))}:Ef,I$=xe("species"),G9=Z.Array,q9=function(t,e){return new(function(r){var n;return Vg(r)&&(n=r.constructor,(zg(n)&&(n===G9||Vg(n.prototype))||pe(n)&&(n=n[I$])===null)&&(n=void 0)),n===void 0?G9:n}(t))(e===0?0:e)},K9=pt([].push),Cf=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Ri(s),h=Mg(v),m=vu(l,c),y=mu(h),g=0,w=f||q9,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:K9(E,d)}else switch(t){case 4:return!1;case 7:K9(E,d)}return i?-1:n||o?o:E}},Ys={forEach:Cf(0),map:Cf(1),filter:Cf(2),find:Cf(5),findIndex:Cf(6)},Y9=function(t,e){var r=[][t];return!!r&&Zt(function(){r.call(null,e||function(){throw 1},1)})},L$=Ys.forEach,N2=Y9("forEach")?[].forEach:function(t){return L$(this,t,arguments.length>1?arguments[1]:void 0)},X9=function(t){if(t&&t.forEach!==N2)try{Hn(t,"forEach",N2)}catch{t.forEach=N2}};for(var j2 in Rg)Rg[j2]&&X9(Z[j2]&&Z[j2].prototype);X9(z9);var $9={}.propertyIsEnumerable,Z9=Object.getOwnPropertyDescriptor,R$=Z9&&!$9.call({1:2},1)?function(t){var e=Z9(this,t);return!!e&&e.enumerable}:$9,J9={f:R$},Vi=function(t){return Mg(wn(t))},Q9=Object.getOwnPropertyDescriptor,xf={f:ir?Q9:function(t,e){if(t=Vi(t),e=O2(e),P9)try{return Q9(t,e)}catch{}if(Ie(t,e))return Tg(!Gt(J9.f,t,e),t[e])}},M$=Math.max,V$=Math.min,Xs=function(t,e){var r=wf(t);return r<0?M$(r+e,0):V$(r,e)},tO=function(t){return function(e,r,n){var o,i=Vi(e),a=mu(i),u=Xs(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},eO={includes:tO(!0),indexOf:tO(!1)},z$=eO.indexOf,rO=pt([].push),nO=function(t,e){var r,n=Vi(t),o=0,i=[];for(r in n)!Ie(Ig,r)&&Ie(n,r)&&rO(i,r);for(;e.length>o;)Ie(n,r=e[o++])&&(~z$(i,r)||rO(i,r));return i},Hg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],H$=Hg.concat("length","prototype"),Sf={f:Object.getOwnPropertyNames||function(t){return nO(t,H$)}},oO={f:Object.getOwnPropertySymbols},U$=pt([].concat),W$=fu("Reflect","ownKeys")||function(t){var e=Sf.f(Le(t)),r=oO.f;return r?U$(e,r(t)):e},G$=function(t,e){for(var r=W$(e),n=zn.f,o=xf.f,i=0;i<r.length;i++){var a=r[i];Ie(t,a)||n(t,a,o(e,a))}},q$=/#|\.prototype\./,Df=function(t,e){var r=Y$[K$(t)];return r==$$||r!=X$&&(oe(e)?Zt(e):!!e)},K$=Df.normalize=function(t){return String(t).replace(q$,".").toLowerCase()},Y$=Df.data={},X$=Df.NATIVE="N",$$=Df.POLYFILL="P",Af=Df,Z$=xf.f,Se=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Z:l?Z[u]||m2(u,{}):(Z[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Z$(r,n))&&a.value:r[n],!Af(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;G$(i,o)}(t.sham||o&&o.sham)&&Hn(i,"sham",!0),Hr(r,n,i,t)}},$s=Object.keys||function(t){return nO(t,Hg)},J$=Zt(function(){$s(1)});/*!
31
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
32
+ *
33
+ * Copyright (c) 2014-2017, Jon Schlinkert.
34
+ * Released under the MIT License.
35
+ */function iO(t){return Object.prototype.toString.call(t)==="[object Object]"}Se({target:"Object",stat:!0,forced:J$},{keys:function(t){return $s(Ri(t))}});var Q$={isHistory(t){return iO(e=t)!==!1&&((r=e.constructor)===void 0||iO(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||ki.isOperationList(t.redos[0]))&&(t.undos.length===0||ki.isOperationList(t.undos[0]));var e,r,n}},I2=new WeakMap,L2=new WeakMap,Zs={isHistoryEditor:t=>Q$.isHistory(t.history)&&C.isEditor(t),isMerging:t=>L2.get(t),isSaving:t=>I2.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var r=Zs.isMerging(t);L2.set(t,!1),e(),L2.set(t,r)},withoutSaving(t,e){var r=Zs.isSaving(t);I2.set(t,!1),e(),I2.set(t,r)}},tZ=Z.String,ue=function(t){if(Lg(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return tZ(t)},R2=function(){var t=Le(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},eZ=qs.PROPER,M2=RegExp.prototype,aO=M2.toString,rZ=pt(R2),nZ=Zt(function(){return aO.call({source:"a",flags:"b"})!="/a/b"}),oZ=eZ&&aO.name!="toString";(nZ||oZ)&&Hr(RegExp.prototype,"toString",function(){var t=Le(this),e=ue(t.source),r=t.flags;return"/"+e+"/"+ue(r===void 0&&pu(M2,t)&&!("flags"in M2)?rZ(t):r)},{unsafe:!0});var Ug,iZ=ir?Object.defineProperties:function(t,e){Le(t);for(var r,n=Vi(e),o=$s(e),i=o.length,a=0;i>a;)zn.f(t,r=o[a++],n[r]);return t},V2=fu("document","documentElement"),uO=k2("IE_PROTO"),z2=function(){},sO=function(t){return"<script>"+t+"<\/script>"},lO=function(t){t.write(sO("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wg=function(){try{Ug=new ActiveXObject("htmlfile")}catch{}var t,e;Wg=typeof document<"u"?document.domain&&Ug?lO(Ug):((e=mf("iframe")).style.display="none",V2.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(sO("document.F=Object")),t.close(),t.F):lO(Ug);for(var r=Hg.length;r--;)delete Wg.prototype[Hg[r]];return Wg()};Ig[uO]=!0;var Gg=Object.create||function(t,e){var r;return t!==null?(z2.prototype=Le(t),r=new z2,z2.prototype=null,r[uO]=t):r=Wg(),e===void 0?r:iZ(r,e)},H2=xe("unscopables"),U2=Array.prototype;U2[H2]==null&&zn.f(U2,H2,{configurable:!0,value:Gg(null)});var Of=function(t){U2[H2][t]=!0},aZ=eO.includes;Se({target:"Array",proto:!0},{includes:function(t){return aZ(this,t,arguments.length>1?arguments[1]:void 0)}}),Of("includes");var uZ=xe("match"),W2=function(t){var e;return pe(t)&&((e=t[uZ])!==void 0?!!e:Un(t)=="RegExp")},sZ=Z.TypeError,G2=function(t){if(W2(t))throw sZ("The method doesn't accept regular expressions");return t},lZ=xe("match"),q2=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[lZ]=!1,"/./"[t](e)}catch{}}return!1},cZ=pt("".indexOf);Se({target:"String",proto:!0,forced:!q2("includes")},{includes:function(t){return!!~cZ(ue(wn(this)),ue(G2(t)),arguments.length>1?arguments[1]:void 0)}});var fZ=/"/g,dZ=pt("".replace);Se({target:"String",proto:!0,forced:Zt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=ue(wn(this)),n="<a",(n+=' name="'+dZ(ue(e),fZ,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var K2=function(t,e,r){var n,o;Le(t);try{if(!(n=hu(t,"return"))){if(e==="throw")throw r;return r}n=Gt(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Le(n),r},pZ=function(t,e,r,n){try{return n?e(Le(r)[0],r[1]):e(r)}catch(o){K2(t,"throw",o)}},Js={},hZ=xe("iterator"),gZ=Array.prototype,cO=function(t){return t!==void 0&&(Js.Array===t||gZ[hZ]===t)},kf=function(t,e,r){var n=O2(e);n in t?zn.f(t,n,Tg(0,r)):t[n]=r},vZ=xe("iterator"),Y2=function(t){if(t!=null)return hu(t,vZ)||hu(t,"@@iterator")||Js[Lg(t)]},mZ=Z.TypeError,fO=function(t,e){var r=arguments.length<2?Y2(t):e;if(Mi(r))return Le(Gt(r,t));throw mZ(Fg(t)+" is not iterable")},dO=Z.Array,pO=xe("iterator"),hO=!1;try{var yZ=0,gO={next:function(){return{done:!!yZ++}},return:function(){hO=!0}};gO[pO]=function(){return this},Array.from(gO,function(){throw 2})}catch{}var X2=function(t,e){if(!hO)return!1;var r=!1;try{var n={};n[pO]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},bZ=!X2(function(t){Array.from(t)});Se({target:"Array",stat:!0,forced:bZ},{from:function(t){var e=Ri(t),r=zg(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=vu(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,d=Y2(e),p=0;if(!d||this==dO&&cO(d))for(a=mu(e),u=r?new this(a):dO(a);a>p;p++)f=i?o(e[p],p):e[p],kf(u,p,f);else for(c=(l=fO(e,d)).next,u=r?new this:[];!(s=Gt(c,l)).done;p++)f=i?pZ(l,o,[s.value,p],!0):s.value,kf(u,p,f);return u.length=p,u}});var yu,vO,mO,wZ=pt("".charAt),yO=pt("".charCodeAt),EZ=pt("".slice),CZ=function(t){return function(e,r){var n,o,i=ue(wn(e)),a=wf(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=yO(i,a))<55296||n>56319||a+1===u||(o=yO(i,a+1))<56320||o>57343?t?wZ(i,a):n:t?EZ(i,a,a+2):o-56320+(n-55296<<10)+65536}},bO={charAt:CZ(!0)},xZ=!Zt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),wO=k2("IE_PROTO"),$2=Z.Object,SZ=$2.prototype,qg=xZ?$2.getPrototypeOf:function(t){var e=Ri(t);if(Ie(e,wO))return e[wO];var r=e.constructor;return oe(r)&&e instanceof r?r.prototype:e instanceof $2?SZ:null},Z2=xe("iterator"),EO=!1;[].keys&&("next"in(mO=[].keys())?(vO=qg(qg(mO)))!==Object.prototype&&(yu=vO):EO=!0);var DZ=yu==null||Zt(function(){var t={};return yu[Z2].call(t)!==t});DZ&&(yu={}),oe(yu[Z2])||Hr(yu,Z2,function(){return this});var J2={IteratorPrototype:yu,BUGGY_SAFARI_ITERATORS:EO},AZ=zn.f,CO=xe("toStringTag"),Kg=function(t,e,r){t&&!Ie(t=r?t:t.prototype,CO)&&AZ(t,CO,{configurable:!0,value:e})},OZ=J2.IteratorPrototype,kZ=function(){return this},BZ=Z.String,_Z=Z.TypeError,Qs=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Le(n),function(i){if(typeof i=="object"||oe(i))return i;throw _Z("Can't set "+BZ(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),FZ=qs.PROPER,TZ=qs.CONFIGURABLE,xO=J2.IteratorPrototype,Yg=J2.BUGGY_SAFARI_ITERATORS,Bf=xe("iterator"),PZ=function(){return this},Q2=function(t,e,r,n,o,i,a){(function(y,g,w,E){var x=g+" Iterator";y.prototype=Gg(OZ,{next:Tg(1,w)}),Kg(y,x,!1),Js[x]=kZ})(r,e,n);var u,s,l,c=function(y){if(y===o&&h)return h;if(!Yg&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,p=t.prototype,v=p[Bf]||p["@@iterator"]||o&&p[o],h=!Yg&&v||c(o),m=e=="Array"&&p.entries||v;if(m&&(u=qg(m.call(new t)))!==Object.prototype&&u.next&&(qg(u)!==xO&&(Qs?Qs(u,xO):oe(u[Bf])||Hr(u,Bf,PZ)),Kg(u,f,!0)),FZ&&o=="values"&&v&&v.name!=="values"&&(TZ?Hn(p,"name","values"):(d=!0,h=function(){return Gt(v,this)})),o)if(s={values:c("values"),keys:i?h:c("keys"),entries:c("entries")},a)for(l in s)(Yg||d||!(l in p))&&Hr(p,l,s[l]);else Se({target:e,proto:!0,forced:Yg||d},s);return p[Bf]!==h&&Hr(p,Bf,h,{name:o}),Js[e]=h,s},NZ=bO.charAt,jZ=wr.set,IZ=wr.getterFor("String Iterator");Q2(String,"String",function(t){jZ(this,{type:"String Iterator",string:ue(t),index:0})},function(){var t,e=IZ(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=NZ(r,n),e.index+=t.length,{value:t,done:!1})});var tw,LZ=xf.f,SO=pt("".endsWith),RZ=pt("".slice),MZ=Math.min,DO=q2("endsWith"),VZ=!(DO||(tw=LZ(String.prototype,"endsWith"),!tw||tw.writable));Se({target:"String",proto:!0,forced:!VZ&&!DO},{endsWith:function(t){var e=ue(wn(this));G2(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=r===void 0?n:MZ(Ks(r),n),i=ue(t);return SO?SO(e,i,o):RZ(e,o-i.length,o)===i}});var zZ=pt([].join),HZ=Mg!=Object,UZ=Y9("join",",");Se({target:"Array",proto:!0,forced:HZ||!UZ},{join:function(t){return zZ(Vi(this),t===void 0?",":t)}});var WZ=xe("species"),Xg=function(t){return gf>=51||!Zt(function(){var e=[];return(e.constructor={})[WZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},GZ=Ys.map,qZ=Xg("map");Se({target:"Array",proto:!0,forced:!qZ},{map:function(t){return GZ(this,t,arguments.length>1?arguments[1]:void 0)}});var ew=Z.RegExp,rw=Zt(function(){var t=ew("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),KZ=rw||Zt(function(){return!ew("a","y").sticky}),$g={BROKEN_CARET:rw||Zt(function(){var t=ew("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:KZ,UNSUPPORTED_Y:rw},YZ=Z.RegExp,nw=Zt(function(){var t=YZ(".","s");return!(t.dotAll&&t.exec(`
36
+ `)&&t.flags==="s")}),XZ=Z.RegExp,ow=Zt(function(){var t=XZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),$Z=wr.get,ZZ=y2("native-string-replace",String.prototype.replace),Zg=RegExp.prototype.exec,iw=Zg,JZ=pt("".charAt),QZ=pt("".indexOf),tJ=pt("".replace),aw=pt("".slice),uw=function(){var t=/a/,e=/b*/g;return Gt(Zg,t,"a"),Gt(Zg,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),AO=$g.BROKEN_CARET,sw=/()??/.exec("")[1]!==void 0;(uw||sw||AO||nw||ow)&&(iw=function(t){var e,r,n,o,i,a,u,s=this,l=$Z(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Gt(iw,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=AO&&s.sticky,v=Gt(R2,s),h=s.source,m=0,y=c;if(p&&(v=tJ(v,"y",""),QZ(v,"g")===-1&&(v+="g"),y=aw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&JZ(c,s.lastIndex-1)!==`
37
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),sw&&(r=new RegExp("^"+h+"$(?!\\s)",v)),uw&&(n=s.lastIndex),o=Gt(Zg,p?r:s,y),p?o?(o.input=aw(o.input,m),o[0]=aw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:uw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),sw&&o&&o.length>1&&Gt(ZZ,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Gg(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var _f=iw;Se({target:"RegExp",proto:!0,forced:/./.exec!==_f},{exec:_f});var lw=Function.prototype,OO=lw.apply,eJ=lw.bind,kO=lw.call,cw=typeof Reflect=="object"&&Reflect.apply||(eJ?kO.bind(OO):function(){return kO.apply(OO,arguments)}),rJ=xe("species"),fw=RegExp.prototype,dw=function(t,e,r,n){var o=xe(t),i=!Zt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Zt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[rJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=pt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=pt(l),h=c.exec;return h===_f||h===fw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Hr(String.prototype,t,s[0]),Hr(fw,o,s[1])}n&&Hn(fw[o],"sham",!0)},nJ=bO.charAt,pw=function(t,e,r){return e+(r?nJ(t,e).length:1)},oJ=Math.floor,hw=pt("".charAt),iJ=pt("".replace),gw=pt("".slice),aJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uJ=/\$([$&'`]|\d{1,2})/g,sJ=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=uJ;return o!==void 0&&(o=Ri(o),s=aJ),iJ(i,s,function(l,c){var f;switch(hw(c,0)){case"$":return"$";case"&":return t;case"`":return gw(e,0,r);case"'":return gw(e,a);case"<":f=o[gw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=oJ(d/10);return p===0?l:p<=u?n[p-1]===void 0?hw(c,1):n[p-1]+hw(c,1):l}f=n[d-1]}return f===void 0?"":f})},lJ=Z.TypeError,Ff=function(t,e){var r=t.exec;if(oe(r)){var n=Gt(r,t,e);return n!==null&&Le(n),n}if(Un(t)==="RegExp")return Gt(_f,t,e);throw lJ("RegExp#exec called on incompatible receiver")},vw=xe("replace"),cJ=Math.max,fJ=Math.min,dJ=pt([].concat),mw=pt([].push),BO=pt("".indexOf),_O=pt("".slice),pJ="a".replace(/./,"$0")==="$0",FO=!!/./[vw]&&/./[vw]("a","$0")==="";dw("replace",function(t,e,r){var n=FO?"$":"$0";return[function(o,i){var a=wn(this),u=o==null?void 0:hu(o,vw);return u?Gt(u,o,a,i):Gt(e,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o);if(typeof i=="string"&&BO(i,n)===-1&&BO(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=oe(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Ff(a,u);if(p===null||(mw(d,p),!c))break;ue(p[0])===""&&(a.lastIndex=pw(u,Ks(a.lastIndex),f))}for(var v,h="",m=0,y=0;y<d.length;y++){for(var g=ue((p=d[y])[0]),w=cJ(fJ(wf(p.index),u.length),0),E=[],x=1;x<p.length;x++)mw(E,(v=p[x])===void 0?v:String(v));var D=p.groups;if(l){var S=dJ([g],E,w,u);D!==void 0&&mw(S,D);var k=ue(cw(i,void 0,S))}else k=sJ(g,u,w,E,D,i);w>=m&&(h+=_O(u,m,w)+k,m=w+g.length)}return h+_O(u,m)}]},!!Zt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!pJ||FO);/*! *****************************************************************************
38
+ Copyright (c) Microsoft Corporation.
39
+
40
+ Permission to use, copy, modify, and/or distribute this software for any
41
+ purpose with or without fee is hereby granted.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
44
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
45
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
46
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
47
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
48
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
49
+ PERFORMANCE OF THIS SOFTWARE.
50
+ ***************************************************************************** */var yw=function(t,e){return yw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},yw(t,e)};function tl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}yw(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var En=function(){return En=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},En.apply(this,arguments)};function Cn(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ut(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function bw(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var hJ=0,TO=function(){this.id=""+hJ++},gJ=wr.set,vJ=wr.getterFor("Array Iterator"),Tf=Q2(Array,"Array",function(t,e){gJ(this,{type:"Array Iterator",target:Vi(t),index:0,kind:e})},function(){var t=vJ(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Js.Arguments=Js.Array,Of("keys"),Of("values"),Of("entries");var el=function(t,e,r){for(var n in e)Hr(t,n,e[n],r);return t},mJ=Z.Array,yJ=Math.max,ww=function(t,e,r){for(var n=mu(t),o=Xs(e,n),i=Xs(r===void 0?n:r,n),a=mJ(yJ(i-o,0)),u=0;o<i;o++,u++)kf(a,u,t[o]);return a.length=u,a},PO=Sf.f,NO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bJ={f:function(t){return NO&&Un(t)=="Window"?function(e){try{return PO(e)}catch{return ww(NO)}}(t):PO(Vi(t))}},jO=Zt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Jg=Object.isExtensible,bu=Zt(function(){Jg(1)})||jO?function(t){return!!pe(t)&&(!jO||Un(t)!="ArrayBuffer")&&(!Jg||Jg(t))}:Jg,wJ=!Zt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Qg=hf(function(t){var e=zn.f,r=!1,n=E2("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Sf.f,s=pt([].splice),l={};l[n]=1,u(l).length&&(Sf.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Se({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bJ.f}))},fastKey:function(u,s){if(!pe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ie(u,n)){if(!bu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Ie(u,n)){if(!bu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return wJ&&r&&bu(u)&&!Ie(u,n)&&i(u),u}};Ig[n]=!0}),EJ=Z.TypeError,t0=function(t,e){this.stopped=t,this.result=e},IO=t0.prototype,Pf=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=vu(e,c),h=function(y){return n&&K2(n,"normal",y),new t0(!0,y)},m=function(y){return f?(Le(y),p?v(y[0],y[1],h):v(y[0],y[1])):p?v(y,h):v(y)};if(d)n=t;else{if(!(o=Y2(t)))throw EJ(Fg(t)+" is not iterable");if(cO(o)){for(i=0,a=mu(t);a>i;i++)if((u=m(t[i]))&&pu(IO,u))return u;return new t0(!1)}n=fO(t,o)}for(s=n.next;!(l=Gt(s,n)).done;){try{u=m(l.value)}catch(y){K2(n,"throw",y)}if(typeof u=="object"&&u&&pu(IO,u))return u}return new t0(!1)},CJ=Z.TypeError,e0=function(t,e){if(pu(e,t))return t;throw CJ("Incorrect invocation")},LO=function(t,e,r){var n,o;return Qs&&oe(n=e.constructor)&&n!==r&&pe(o=n.prototype)&&o!==r.prototype&&Qs(t,o),t},RO=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=Z[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=pt(u[m]);Hr(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!pe(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!pe(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!pe(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(Af(t,!oe(a)||!(o||u.forEach&&!Zt(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),Qg.enable();else if(Af(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Zt(function(){f.has(1)}),v=X2(function(m){new a(m)}),h=!o&&Zt(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){e0(m,u);var g=LO(new a,m,s);return y!=null&&Pf(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Se({global:!0,forced:s!=a},l),Kg(s,t),o||r.setStrong(s,t,n),s},r0=Qg.getWeakData,xJ=wr.set,SJ=wr.getterFor,DJ=Ys.find,AJ=Ys.findIndex,OJ=pt([].splice),kJ=0,n0=function(t){return t.frozen||(t.frozen=new MO)},MO=function(){this.entries=[]},Ew=function(t,e){return DJ(t.entries,function(r){return r[0]===e})};MO.prototype={get:function(t){var e=Ew(this,t);if(e)return e[1]},has:function(t){return!!Ew(this,t)},set:function(t,e){var r=Ew(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=AJ(this.entries,function(r){return r[0]===t});return~e&&OJ(this.entries,e,1),!!~e}};var Nf,VO={getConstructor:function(t,e,r,n){var o=t(function(s,l){e0(s,i),xJ(s,{type:e,id:kJ++,frozen:void 0}),l!=null&&Pf(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=SJ(e),u=function(s,l,c){var f=a(s),d=r0(Le(l),!0);return d===!0?n0(f).set(l,c):d[f.id]=c,s};return el(i,{delete:function(s){var l=a(this);if(!pe(s))return!1;var c=r0(s);return c===!0?n0(l).delete(s):c&&Ie(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pe(s))return!1;var c=r0(s);return c===!0?n0(l).has(s):c&&Ie(c,l.id)}}),el(i,r?{get:function(s){var l=a(this);if(pe(s)){var c=r0(s);return c===!0?n0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},o0=wr.enforce,BJ=!Z.ActiveXObject&&"ActiveXObject"in Z,zO=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},_J=RO("WeakMap",zO,VO);if(I9&&BJ){Nf=VO.getConstructor(zO,"WeakMap",!0),Qg.enable();var jf=_J.prototype,HO=pt(jf.delete),i0=pt(jf.has),UO=pt(jf.get),WO=pt(jf.set);el(jf,{delete:function(t){if(pe(t)&&!bu(t)){var e=o0(this);return e.frozen||(e.frozen=new Nf),HO(this,t)||e.frozen.delete(t)}return HO(this,t)},has:function(t){if(pe(t)&&!bu(t)){var e=o0(this);return e.frozen||(e.frozen=new Nf),i0(this,t)||e.frozen.has(t)}return i0(this,t)},get:function(t){if(pe(t)&&!bu(t)){var e=o0(this);return e.frozen||(e.frozen=new Nf),i0(this,t)?UO(this,t):e.frozen.get(t)}return UO(this,t)},set:function(t,e){if(pe(t)&&!bu(t)){var r=o0(this);r.frozen||(r.frozen=new Nf),i0(this,t)?WO(this,t,e):r.frozen.set(t,e)}else WO(this,t,e);return this}})}var Cw=xe("iterator"),GO=xe("toStringTag"),xw=Tf.values,qO=function(t,e){if(t){if(t[Cw]!==xw)try{Hn(t,Cw,xw)}catch{t[Cw]=xw}if(t[GO]||Hn(t,GO,e),Rg[e]){for(var r in Tf)if(t[r]!==Tf[r])try{Hn(t,r,Tf[r])}catch{t[r]=Tf[r]}}}};for(var Sw in Rg)qO(Z[Sw]&&Z[Sw].prototype,Sw);qO(z9,"DOMTokenList");var Dw=new WeakMap,Aw=new WeakMap,Ow=new WeakMap,a0=new WeakMap,kw=new WeakMap,u0=new WeakMap,Bw=new WeakMap,_w=new WeakMap,s0=new WeakMap,KO=new WeakMap,YO=new WeakMap,XO=new WeakMap,$O=new WeakMap,If=new WeakMap,rl=new WeakMap,Fw=new WeakMap,l0=new WeakMap,Tw=new WeakMap,c0=new WeakMap,f0=new WeakMap,ZO=new WeakMap,wu=new WeakMap,Pw=new WeakMap,JO=new WeakMap,Nw=new WeakMap,FJ=Ys.find,QO=!0;"find"in[]&&Array(1).find(function(){QO=!1}),Se({target:"Array",proto:!0,forced:QO},{find:function(t){return FJ(this,t,arguments.length>1?arguments[1]:void 0)}}),Of("find"),Se({global:!0},{globalThis:Z});const TJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];gg&&(_.fn.css=gg),mn&&(_.fn.append=mn),_s&&(_.fn.addClass=_s),Fs&&(_.fn.removeClass=Fs),Ts&&(_.fn.hasClass=Ts),co&&(_.fn.on=co),Fi&&(_.fn.focus=Fi),vn&&(_.fn.attr=vn),fg&&(_.fn.removeAttr=fg),Ns&&(_.fn.hide=Ns),hg&&(_.fn.show=hg),u7&&(_.fn.offset=u7),dg&&(_.fn.width=dg),pg&&(_.fn.height=pg),js&&(_.fn.parent=js),yg&&(_.fn.parents=yg),l7&&(_.fn.is=l7),Ps&&(_.fn.dataset=Ps),lo&&(_.fn.val=lo),mg&&(_.fn.text=mg),_i&&(_.fn.html=_i),Ls&&(_.fn.children=Ls),Rs&&(_.fn.remove=Rs),Is&&(_.fn.find=Is),vg&&(_.fn.each=vg),Ms&&(_.fn.empty=Ms);var vo,Er,jw=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Wn=function(t){return Eu(t)&&t.nodeType===1},Eu=function(t){var e=jw(t);return!!e&&t instanceof e.Node},tk=function(t){var e=t&&t.anchorNode&&jw(t.anchorNode);return!!e&&t instanceof e.Selection},ek=function(t){return Eu(t)&&t.nodeType===3},Iw=function(t){var e,r,n;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(t))||null},rk=function(t,e,r){for(var n,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(Eu(n=i)&&n.nodeType===8||Wn(i)&&i.childNodes.length===0||Wn(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,r="backward"):a<0?(s=!0,a=e+1,r="forward"):(i=o[a],e=a,a+=r==="forward"?1:-1);return[i,e]},PJ=function(t,e,r){return Ut(rk(t,e,r),1)[0]},NJ=function t(e){var r,n,o="";if(ek(e)&&e.nodeValue)return e.nodeValue;if(Wn(e)){try{for(var i=Cn(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
51
+ `)}return o};function nk(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var r=t.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||nk(o,e)}}function ok(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==vo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Er=vo||(vo={}))[Er.ELEMENT_NODE=1]="ELEMENT_NODE",Er[Er.TEXT_NODE=3]="TEXT_NODE",Er[Er.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Er[Er.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Er[Er.COMMENT_NODE=8]="COMMENT_NODE",Er[Er.DOCUMENT_NODE=9]="DOCUMENT_NODE",Er[Er.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Er[Er.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var Lw=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Lf=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Rf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),jJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),IJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Rw=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Mf=!IJ&&!jJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",O={getWindow:function(t){var e=ZO.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var r=f0.get(e);return r||(r=new TO,f0.set(e,r)),r},setNewKey:function(t){var e=new TO;f0.set(t,e)},findPath:function(t,e){for(var r=[],n=e;;){var o=rl.get(n);if(o==null){if(C.isEditor(n))return r;break}var i=If.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=O.toDOMNode(t,t),r=e.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:e.ownerDocument},getParentNode:function(t,e){return rl.get(e)||null},getParentsNodes:function(t,e){for(var r=[],n=e;n!==t&&n!=null;){var o=O.getParentNode(t,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(t,e){var r=[O.findPath(t,e)[0]];return Q.get(t,r)},toDOMNode:function(t,e){var r;if(C.isEditor(e))r=Fw.get(t);else{var n=O.findKey(t,e);r=Tw.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return r},hasDOMNode:function(t,e,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=O.toDOMNode(t,t);try{n=Wn(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var r=e.anchor,n=e.focus,o=V.isBackward(e),i=O.toDOMPoint(t,r),a=V.isCollapsed(e)?i:O.toDOMPoint(t,n),u=O.getWindow(t).document.createRange(),s=Ut(o?a:i,2),l=s[0],c=s[1],f=Ut(o?i:a,2),d=f[0],p=f[1],v=!!(Wn(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),h=!!(Wn(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,h?1:p),u},toDOMPoint:function(t,e){var r,n,o,i=Ut(C.node(t,e.path),1)[0],a=O.toDOMNode(t,i);C.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Cn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),h=s+(v==null?p:parseInt(v,10));if(e.offset<=h){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=h}}}catch(m){r={error:m}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var r=Wn(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?l0.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var r=e.clientX,n=e.clientY,o=e.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=O.toSlateNode(t,e.target),u=O.findPath(t,a);if(C.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=C.point(t,u,{edge:l?"start":"end"}),f=l?C.before(t,c):C.after(t,c);if(f)return C.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);return O.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((tk(e)?e.anchorNode:e.startContainer)&&(tk(e)?(n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=Rw&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(n=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=O.toSlatePoint(t,[n,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:O.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return V.isExpanded(d)&&V.isForward(d)&&Wn(i)&&C.void(t,{at:d.focus,mode:"highest"})&&(d=C.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,r){var n,o=r.exactMatch,i=r.suppressThrow,a=Ut(o?e:function(g){var w,E=Ut(g,2),x=E[0],D=E[1];if(Wn(x)&&x.childNodes.length){var S=D===x.childNodes.length,k=S?D-1:D;for(x=(w=Ut(rk(x,k,S?"backward":"forward"),2))[0],S=(k=w[1])<D;Wn(x)&&x.childNodes.length;){var F=S?x.childNodes.length-1:0;x=PJ(x,F,S?"backward":"forward")}D=S&&x.textContent!=null?x.textContent.length:0}return[x,D]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var h=O.getWindow(t).document.createRange();h.setStart(c,0),h.setEnd(u,s);var m=h.cloneContents();bw(bw([],Ut(r7(m.querySelectorAll("[data-slate-zero-width]")))),Ut(r7(m.querySelectorAll("[contenteditable=false]")))).forEach(function(g){g.parentNode.removeChild(g)}),f=m.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(g){f-=g.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Lf&&(!((n=v.textContent)===null||n===void 0)&&n.endsWith(`
52
+ `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=O.toSlateNode(t,c);return{path:O.findPath(t,y),offset:f}},hasRange:function(t,e){var r=e.anchor,n=e.focus;return C.hasPath(t,r.path)&&C.hasPath(t,n.path)},getNodeType:function(t){return ft.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,r,n=[],o=C.nodes(t,{universal:!0});try{for(var i=Cn(o),a=i.next();!a.done;a=i.next()){var u=Ut(a.value,1)[0];ft.isElement(u)&&n.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},getSelectedNodeByType:function(t,e){var r=this,n=Ut(C.nodes(t,{match:function(i){return r.checkNodeType(i,e)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ut(C.nodes(t,{match:function(n){return it.isText(n)},universal:!0}),1),r=e[0];return r==null?null:r[0]},isNodeSelected:function(t,e){var r=Ut(C.nodes(t,{match:function(o){return o===e},universal:!0}),1),n=r[0];return n!=null&&Ut(n,1)[0]===e},isSelectionAtLineEnd:function(t,e){var r=t.selection;return!!r&&(C.isEnd(t,r.anchor,e)||C.isEnd(t,r.focus,e))},getTextarea:function(t){var e=Dw.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return a0.get(t)||null},getHoverbar:function(t){return u0.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,r){t.normalizeNode([e,[r]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),r=e.maxLength,n=e.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,r,n,o,i=O.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Cn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(h){e={error:h}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}var c=C.nodes(t,{match:function(h){return!(!ft.isElement(h)||t.isInline(h))},universal:!0});try{for(var f=Cn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];nk(O.toDOMNode(t,v),function(h,m){var y=_(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||m.removeChild(h)})}}}catch(h){n={error:h}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(t,e){var r=t.children||[];return r[r.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,r,n=C.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Cn(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||V.isExpanded(e))return!1;var r=O.getSelectedNodeByType(t,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(t,e){var r=C.node(t,e);if(r==null)return!1;var n=Ut(r,1)[0].children;return n.length===1&&n[0].text===""}},LJ=1,ik={},Vf={},RJ=Ys.filter,MJ=Xg("filter");Se({target:"Array",proto:!0,forced:!MJ},{filter:function(t){return RJ(this,t,arguments.length>1?arguments[1]:void 0)}});var Mw=`
53
+ \v\f\r                 \u2028\u2029\uFEFF`,ak=pt("".replace),d0="["+Mw+"]",VJ=RegExp("^"+d0+d0+"*"),zJ=RegExp(d0+d0+"*$"),HJ=function(t){return function(e){var r=ue(wn(e));return 1&t&&(r=ak(r,VJ,"")),2&t&&(r=ak(r,zJ,"")),r}},UJ={trim:HJ(3)},WJ=qs.PROPER,GJ=UJ.trim;Se({target:"String",proto:!0,forced:function(t){return Zt(function(){return!!Mw[t]()||"​…᠎"[t]()!=="​…᠎"||WJ&&Mw[t].name!==t})}("trim")},{trim:function(){return GJ(this)}});var Vw=[],uk={};function qJ(t,e,r){var n=r.isInline(t)?"span":"div";return"<"+n+">"+e+"</"+n+">"}var zf,nl,sk,zw,p0=Z.Promise,lk=xe("species"),Hw=function(t){var e=fu(t),r=zn.f;ir&&e&&!e[lk]&&r(e,lk,{configurable:!0,get:function(){return this}})},KJ=Z.TypeError,YJ=xe("species"),ck=function(t,e){var r,n=Le(t).constructor;return n===void 0||(r=Le(n)[YJ])==null?e:function(o){if(zg(o))return o;throw KJ(Fg(o)+" is not a constructor")}(r)},fk=pt([].slice),dk=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ws),zi=Un(Z.process)=="process",Uw=Z.setImmediate,pk=Z.clearImmediate,XJ=Z.process,Ww=Z.Dispatch,$J=Z.Function,hk=Z.MessageChannel,ZJ=Z.String,Gw=0,Hf={};try{zf=Z.location}catch{}var qw=function(t){if(Ie(Hf,t)){var e=Hf[t];delete Hf[t],e()}},Kw=function(t){return function(){qw(t)}},gk=function(t){qw(t.data)},vk=function(t){Z.postMessage(ZJ(t),zf.protocol+"//"+zf.host)};Uw&&pk||(Uw=function(t){var e=fk(arguments,1);return Hf[++Gw]=function(){cw(oe(t)?t:$J(t),void 0,e)},nl(Gw),Gw},pk=function(t){delete Hf[t]},zi?nl=function(t){XJ.nextTick(Kw(t))}:Ww&&Ww.now?nl=function(t){Ww.now(Kw(t))}:hk&&!dk?(zw=(sk=new hk).port2,sk.port1.onmessage=gk,nl=vu(zw.postMessage,zw)):Z.addEventListener&&oe(Z.postMessage)&&!Z.importScripts&&zf&&zf.protocol!=="file:"&&!Zt(vk)?(nl=vk,Z.addEventListener("message",gk,!1)):nl="onreadystatechange"in mf("script")?function(t){V2.appendChild(mf("script")).onreadystatechange=function(){V2.removeChild(this),qw(t)}}:function(t){setTimeout(Kw(t),0)});var Uf,Cu,Wf,ol,Yw,Xw,$w,mk,yk={set:Uw},JJ=/ipad|iphone|ipod/i.test(Ws)&&Z.Pebble!==void 0,QJ=/web0s(?!.*chrome)/i.test(Ws),tQ=xf.f,Zw=yk.set,bk=Z.MutationObserver||Z.WebKitMutationObserver,wk=Z.document,Ek=Z.process,h0=Z.Promise,Ck=tQ(Z,"queueMicrotask"),xk=Ck&&Ck.value;xk||(Uf=function(){var t,e;for(zi&&(t=Ek.domain)&&t.exit();Cu;){e=Cu.fn,Cu=Cu.next;try{e()}catch(r){throw Cu?ol():Wf=void 0,r}}Wf=void 0,t&&t.enter()},dk||zi||QJ||!bk||!wk?!JJ&&h0&&h0.resolve?(($w=h0.resolve(void 0)).constructor=h0,mk=vu($w.then,$w),ol=function(){mk(Uf)}):zi?ol=function(){Ek.nextTick(Uf)}:(Zw=vu(Zw,Z),ol=function(){Zw(Uf)}):(Yw=!0,Xw=wk.createTextNode(""),new bk(Uf).observe(Xw,{characterData:!0}),ol=function(){Xw.data=Yw=!Yw}));var Jw,Sk,Dk,Ak,Ok=xk||function(t){var e={fn:t,next:void 0};Wf&&(Wf.next=e),Cu||(Cu=e,ol()),Wf=e},eQ=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=Mi(e),this.reject=Mi(r)},Qw={f:function(t){return new eQ(t)}},tE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},rQ=typeof window=="object",kk=yk.set,nQ=xe("species"),mo="Promise",Bk=wr.getterFor(mo),oQ=wr.set,iQ=wr.getterFor(mo),xu=p0&&p0.prototype,yo=p0,Gf=xu,_k=Z.TypeError,eE=Z.document,rE=Z.process,il=Qw.f,aQ=il,uQ=!!(eE&&eE.createEvent&&Z.dispatchEvent),Fk=oe(Z.PromiseRejectionEvent),Tk=!1,qf=Af(mo,function(){var t=jg(yo),e=t!==String(yo);if(!e&&gf===66)return!0;if(gf>=51&&/native code/.test(t))return!1;var r=new yo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[nQ]=n,!(Tk=r.then(function(){})instanceof n)||!e&&rQ&&!Fk}),sQ=qf||!X2(function(t){yo.all(t).catch(function(){})}),Pk=function(t){var e;return!(!pe(t)||!oe(e=t.then))&&e},nE=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;Ok(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&cQ(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(_k("Promise-chain cycle")):(u=Pk(a))?Gt(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&lQ(t)})}},Nk=function(t,e,r){var n,o;uQ?((n=eE.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Z.dispatchEvent(n)):n={promise:e,reason:r},!Fk&&(o=Z["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=Z.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},lQ=function(t){Gt(kk,Z,function(){var e,r=t.facade,n=t.value;if(jk(t)&&(e=tE(function(){zi?rE.emit("unhandledRejection",n,r):Nk("unhandledrejection",r,n)}),t.rejection=zi||jk(t)?2:1,e.error))throw e.value})},jk=function(t){return t.rejection!==1&&!t.parent},cQ=function(t){Gt(kk,Z,function(){var e=t.facade;zi?rE.emit("rejectionHandled",e):Nk("rejectionhandled",e,t.value)})},al=function(t,e,r){return function(n){t(e,n,r)}},ul=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,nE(t,!0))},oE=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw _k("Promise can't be resolved itself");var n=Pk(e);n?Ok(function(){var o={done:!1};try{Gt(n,e,al(oE,o,t),al(ul,o,t))}catch(i){ul(o,i,t)}}):(t.value=e,t.state=1,nE(t,!1))}catch(o){ul({done:!1},o,t)}}};if(qf&&(Gf=(yo=function(t){e0(this,Gf),Mi(t),Gt(Jw,this);var e=Bk(this);try{t(al(oE,e),al(ul,e))}catch(r){ul(e,r)}}).prototype,(Jw=function(t){oQ(this,{type:mo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=el(Gf,{then:function(t,e){var r=iQ(this),n=r.reactions,o=il(ck(this,yo));return o.ok=!oe(t)||t,o.fail=oe(e)&&e,o.domain=zi?rE.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&nE(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Sk=function(){var t=new Jw,e=Bk(t);this.promise=t,this.resolve=al(oE,e),this.reject=al(ul,e)},Qw.f=il=function(t){return t===yo||t===Dk?new Sk(t):aQ(t)},oe(p0)&&xu!==Object.prototype)){Ak=xu.then,Tk||(Hr(xu,"then",function(t,e){var r=this;return new yo(function(n,o){Gt(Ak,r,n,o)}).then(t,e)},{unsafe:!0}),Hr(xu,"catch",Gf.catch,{unsafe:!0}));try{delete xu.constructor}catch{}Qs&&Qs(xu,Gf)}Se({global:!0,wrap:!0,forced:qf},{Promise:yo}),Kg(yo,mo,!1),Hw(mo),Dk=fu(mo),Se({target:mo,stat:!0,forced:qf},{reject:function(t){var e=il(this);return Gt(e.reject,void 0,t),e.promise}}),Se({target:mo,stat:!0,forced:qf},{resolve:function(t){return function(e,r){if(Le(e),pe(r)&&r.constructor===e)return r;var n=Qw.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),Se({target:mo,stat:!0,forced:sQ},{all:function(t){var e=this,r=il(e),n=r.resolve,o=r.reject,i=tE(function(){var a=Mi(e.resolve),u=[],s=0,l=1;Pf(t,function(c){var f=s++,d=!1;l++,Gt(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=il(e),n=r.reject,o=tE(function(){var i=Mi(e.resolve);Pf(t,function(a){Gt(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var sl=$g.UNSUPPORTED_Y,fQ=Math.min,Ik=[].push,dQ=pt(/./.exec),ll=pt(Ik),Kf=pt("".slice);function xn(t){Promise.resolve().then(t)}function Lk(t,e){return ft.isElement(t)?function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=C.isVoid(n,r),l="";s||(l=u.map(function(y){return Lk(y,n)}).join(""));var c=function(y){return uk[y]||qJ}(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||Vw.forEach(function(y){return d=y(r,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,h=f.suffix,m=h===void 0?"":h;return v&&(d=v+d),m&&(d+=m),d}(t,e):function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(i);var a=O.getParentsNodes(n,r).some(function(s){return O.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=O.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return Vw.forEach(function(s){return i=s(r,i)}),i}(t,e)}function Rk(t){return"w-e-element-"+t}dw("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ue(wn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!W2(o))return Gt(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Gt(_f,v,a))&&!((l=v.lastIndex)>p&&(ll(f,Kf(a,p,s.index)),s.length>1&&s.index<a.length&&cw(Ik,f,ww(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&dQ(v,"")||ll(f,""):ll(f,Kf(a,p)),f.length>u?ww(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Gt(e,this,o,i)}:e,[function(o,i){var a=wn(this),u=o==null?void 0:hu(o,t);return u?Gt(u,o,a,i):Gt(n,ue(a),o,i)},function(o,i){var a=Le(this),u=ue(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=ck(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(sl?"g":"y"),d=new l(sl?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Ff(d,u)===null?[u]:[];for(var v=0,h=0,m=[];h<u.length;){d.lastIndex=sl?0:h;var y,g=Ff(d,sl?Kf(u,h):u);if(g===null||(y=fQ(Ks(d.lastIndex+(sl?h:0)),u.length))===v)h=pw(u,h,c);else{if(ll(m,Kf(u,v,h)),m.length===p)return m;for(var w=1;w<=g.length-1;w++)if(ll(m,g[w]),m.length===p)return m;h=v=y}}return ll(m,Kf(u,v)),m}]},!!Zt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),sl);var Mk=function(t,e){var r=(e.top+e.bottom)/2;return t.top<=r&&t.bottom>=r},Vk=function(t,e,r){var n=O.toDOMRange(t,e).getBoundingClientRect(),o=O.toDOMRange(t,r).getBoundingClientRect();return Mk(n,o)&&Mk(o,n)},zk=["span","b","strong","i","em","s","strike","u","font","sub","sup"],Hk=[],iE=[],g0={},pQ=zn.f,hQ=Sf.f,gQ=wr.enforce,vQ=xe("match"),Jo=Z.RegExp,cl=Jo.prototype,mQ=Z.SyntaxError,yQ=pt(R2),bQ=pt(cl.exec),v0=pt("".charAt),Uk=pt("".replace),Wk=pt("".indexOf),wQ=pt("".slice),EQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Su=/a/g,aE=/a/g,CQ=new Jo(Su)!==Su,Gk=$g.MISSED_STICKY,xQ=$g.UNSUPPORTED_Y,SQ=ir&&(!CQ||Gk||nw||ow||Zt(function(){return aE[vQ]=!1,Jo(Su)!=Su||Jo(aE)==aE||Jo(Su,"i")!="/a/i"}));if(Af("RegExp",SQ)){for(var Hi=function(t,e){var r,n,o,i,a,u,s=pu(cl,this),l=W2(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===Hi)return t;if((l||pu(cl,t))&&(t=t.source,c&&(e="flags"in d?d.flags:yQ(d))),t=t===void 0?"":ue(t),e=e===void 0?"":ue(e),d=t,nw&&"dotAll"in Su&&(n=!!e&&Wk(e,"s")>-1)&&(e=Uk(e,/s/g,"")),r=e,Gk&&"sticky"in Su&&(o=!!e&&Wk(e,"y")>-1)&&xQ&&(e=Uk(e,/y/g,"")),ow&&(i=function(p){for(var v,h=p.length,m=0,y="",g=[],w={},E=!1,x=!1,D=0,S="";m<=h;m++){if((v=v0(p,m))==="\\")v+=v0(p,++m);else if(v==="]")E=!1;else if(!E)switch(!0){case v==="[":E=!0;break;case v==="(":bQ(EQ,wQ(p,m+1))&&(m+=2,x=!0),y+=v,D++;continue;case(v===">"&&x):if(S===""||Ie(w,S))throw new mQ("Invalid capture group name");w[S]=!0,g[g.length]=[S,D],x=!1,S="";continue}x?S+=v:y+=v}return[y,g]}(t),t=i[0],f=i[1]),a=LO(Jo(t,e),s?this:cl,Hi),(n||o||f.length)&&(u=gQ(a),n&&(u.dotAll=!0,u.raw=Hi(function(p){for(var v,h=p.length,m=0,y="",g=!1;m<=h;m++)(v=v0(p,m))!=="\\"?g||v!=="."?(v==="["?g=!0:v==="]"&&(g=!1),y+=v):y+="[\\s\\S]":y+=v+v0(p,++m);return y}(t),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{Hn(a,"source",d===""?"(?:)":d)}catch{}return a},DQ=function(t){t in Hi||pQ(Hi,t,{configurable:!0,get:function(){return Jo[t]},set:function(e){Jo[t]=e}})},qk=hQ(Jo),Kk=0;qk.length>Kk;)DQ(qk[Kk++]);cl.constructor=Hi,Hi.prototype=cl,Hr(Z,"RegExp",Hi)}Hw("RegExp");var AQ=new RegExp(" ","g");function Yk(t){return t.replace(AQ," ")}function Xk(t,e){var r=t.length;if(r){var n=t[r-1];if(it.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+e,!0}}return!1}function OQ(t,e,r){return{type:"paragraph",children:[{text:_(t).text().replace(/\s+/gm," ")}]}}function uE(t,e){var r=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==vo.ELEMENT_NODE){if(l.nodeType===vo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
54
+ `)>=0)return;c&&(c=Yk(c),Xk(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(Xk(u,`
55
+ `)||u.push({text:`
56
+ `}));var f=lE(_(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),n=function(i){for(var a in g0)if(i[0].matches(a))return g0[a];return OQ}(t),o=n(t[0],r,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){C.isVoid(e,i)||(r.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),iE.forEach(function(a){i=a(t[0],i,e)}))}),o}function sE(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
57
+ `));var r=t[0].textContent||"";r=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(r);var n={text:r=Yk(r)};return iE.forEach(function(o){n=o(t[0],n,e)}),n}function lE(t,e){Hk.forEach(function(n){var o=n.selector,i=n.preParseHtml;t[0].matches(o)&&(t=_(i(t[0])))});var r=ok(t);return r==="span"?t.attr("data-w-e-type")?uE(t,e):sE(t,e):r==="code"?ok(t.parent())==="pre"?uE(t,e):sE(t,e):zk.includes(r)?sE(t,e):uE(t,e)}function $k(t,e,r){var n=_(r);return!!n.attr(e)||(n.attr(e,"true"),t.on("destroyed",function(){n.removeAttr(e)}),!1)}function Zk(t,e){e===void 0&&(e="");var r=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=_("<div>"+e+"</div>");return Array.from(n.children()).forEach(function(o){var i=lE(_(o),t);Array.isArray(i)?i.forEach(function(a){return r.push(a)}):r.push(i)}),r}var kQ=zn.f,Jk=Qg.fastKey,Qk=wr.set,cE=wr.getterFor,BQ={getConstructor:function(t,e,r,n){var o=t(function(l,c){e0(l,i),Qk(l,{type:e,index:Gg(null),first:void 0,last:void 0,size:0}),ir||(l.size=0),c!=null&&Pf(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=cE(e),u=function(l,c,f){var d,p,v=a(l),h=s(l,c);return h?h.value=f:(v.last=h={index:p=Jk(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=h),d&&(d.next=h),ir?v.size++:l.size++,p!=="F"&&(v.index[p]=h)),l},s=function(l,c){var f,d=a(l),p=Jk(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return el(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,ir?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),ir?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=vu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),el(i,r?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),ir&&kQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=cE(e),i=cE(n);Q2(t,e,function(a,u){Qk(this,{type:n,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),Hw(e)}};RO("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},BQ);var tB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function eB(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):R.insertNodes(t,e,{mode:"highest"})}var _Q=function(t){var e=t,r=e.insertText;return e.insertFragment,e.setFragmentData=function(n){var o=e.selection;if(o){var i=Ut(V.edges(o),2),a=i[0],u=i[1],s=C.void(e,{at:a.path}),l=C.void(e,{at:u.path});if(!V.isCollapsed(o)||s){var c=O.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(x){x.textContent&&x.textContent.trim()!==""&&(d=x)}),l){var p=Ut(l,1)[0],v=c.cloneRange(),h=O.toDOMNode(e,p);v.setEndAfter(h),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(x){var D=x.getAttribute("data-slate-zero-width")==="n";x.textContent=D?`
58
+ `:""}),ek(d)){var m=d.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(d),f.appendChild(m),d=m}var y=e.getFragment(),g=JSON.stringify(y),w=window.btoa(encodeURIComponent(g));d.setAttribute("data-slate-fragment",w),n.setData("application/x-slate-fragment",w);var E=f.ownerDocument.createElement("div");return E.appendChild(f),E.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(E),n.setData("text/html",E.innerHTML),n.setData("text/plain",NJ(E)),f.ownerDocument.body.removeChild(E),n}}},e.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Cn(f),v=p.next();!v.done;v=p.next()){var h=v.value;d&&R.splitNodes(e,{always:!0}),r(h),d=!0}}catch(m){o={error:m}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},e},Yf=function(t){return t!=null},FQ={object:!0,function:!0,undefined:!0},TQ=/^\s*class[\s{/}]/,PQ=Function.prototype.toString,rB=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(r){if(!function(n){return!!Yf(n)&&hasOwnProperty.call(FQ,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}}(e)}(t)&&!TQ.test(PQ.call(t))},fE=function(t){return t!=null},NQ=Object.keys,jQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return NQ(fE(t)?Object(t):t)},IQ=function(t){if(!fE(t))throw new TypeError("Cannot use null or undefined");return t},LQ=Math.max,nB=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var r,n,o,i=LQ(arguments.length,2);for(t=Object(IQ(t)),o=function(a){try{t[a]=e[a]}catch(u){r||(r=u)}},n=1;n<i;++n)jQ(e=arguments[n]).forEach(o);if(r!==void 0)throw r;return t},RQ=Array.prototype.forEach,MQ=Object.create,VQ=function(t,e){var r;for(r in t)e[r]=t[r]},oB=function(t){var e=MQ(null);return RQ.call(arguments,function(r){fE(r)&&VQ(Object(r),e)}),e},dE="razdwatrzy",zQ=String.prototype.indexOf,Xf=typeof dE.contains=="function"&&dE.contains("dwa")===!0&&dE.contains("foo")===!1?String.prototype.contains:function(t){return zQ.call(this,t,arguments[1])>-1},m0=hf(function(t){var e=t.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Yf(r)?(o=Xf.call(r,"c"),i=Xf.call(r,"e"),a=Xf.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?nB(oB(u),s):s};e.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Yf(n)?rB(n)?Yf(o)?rB(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Yf(r)?(i=Xf.call(r,"c"),a=Xf.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?nB(oB(u),s):s}}),pE=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},HQ=hf(function(t,e){var r,n,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};r=function(m,y){var g;return pE(y),v.call(this,"__ee__")?g=this.__ee__:(g=h.value=f(null),d(this,"__ee__",h),h.value=null),g[m]?typeof g[m]=="object"?g[m].push(y):g[m]=[g[m],y]:g[m]=y,this},n=function(m,y){var g,w;return pE(y),w=this,r.call(this,m,g=function(){o.call(w,m,g),l.call(y,this,arguments)}),g.__eeOnceListener__=y,this},o=function(m,y){var g,w,E,x;if(pE(y),!v.call(this,"__ee__"))return this;if(!(g=this.__ee__)[m])return this;if(typeof(w=g[m])=="object")for(x=0;E=w[x];++x)E!==y&&E.__eeOnceListener__!==y||(w.length===2?g[m]=w[x?0:1]:w.splice(x,1));else w!==y&&w.__eeOnceListener__!==y||delete g[m];return this},i=function(m){var y,g,w,E,x;if(v.call(this,"__ee__")&&(E=this.__ee__[m]))if(typeof E=="object"){for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];for(E=E.slice(),y=0;w=E[y];++y)l.call(w,this,x)}else switch(arguments.length){case 1:c.call(E,this);break;case 2:c.call(E,this,arguments[1]);break;case 3:c.call(E,this,arguments[1],arguments[2]);break;default:for(g=arguments.length,x=new Array(g-1),y=1;y<g;++y)x[y-1]=arguments[y];l.call(E,this,x)}},a={on:r,once:n,off:o,emit:i},u={on:m0(r),once:m0(n),off:m0(o),emit:m0(i)},s=p({},u),t.exports=e=function(m){return m==null?f(s):p(Object(m),u)},e.methods=a});function y0(t){var e=JO.get(t);return e==null&&(e=HQ(),JO.set(t,e)),e}var b0=new WeakMap;function iB(t,e){var r=b0.get(t);r==null&&(r=new Set,b0.set(t,r)),r.add(e)}function UQ(t){return b0.get(t)||new Set}function WQ(t){b0.set(t,new Set)}function hE(t){var e=O.getTextarea(t).$textAreaContainer,r=e.width(),n=e.height(),o=e.offset();return{top:o.top,left:o.left,width:r,height:n}}function gE(t){var e={top:"0",left:"0"},r=t.selection;if(r==null)return e;var n=hE(t);if(n==null)return e;var o=n.top,i=n.left,a=n.width,u=n.height,s=O.toDOMRange(t,r).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var h=f+l;h<0&&(h=0),c.top=h+5+"px"}return c}function vE(t,e,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(t.selection==null)return n;var o=ft.isElement(e)&&t.isVoid(e),i=ft.isElement(e)&&t.isInline(e),a=c0.get(e);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(S){var k=[];k.push(S);for(var F=0;k.length>0;){var H=k.pop();if(H==null||++F>1e4)break;var G=H.nodeName;if(H.nodeType===1){var j=G.toLowerCase();if(TJ.includes(j)||j==="iframe"||j==="video")return H;var L=H.children||[],z=L.length;if(z)for(var K=z-1;K>=0;K--)k.push(L[K])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=hE(t);if(v==null)return n;var h,m=v.top,y=v.left,g=v.width,w=v.height,E={},x=s-m,D=l-y;if(r==="bar")return E.left=D+"px",x>40?E.bottom=w-x+5+"px":E.top=x+c+5+"px",E;if(r==="modal")return o?i?D>(g-f)/2?E.right=g-D+5+"px":E.left=D+f+5+"px":E.left="20px":E.left=D+"px",o?((h=x)<0&&(h=0),E.top=h+"px"):x>(w-c)/2?E.bottom=w-x+5+"px":((h=x+c)<0&&(h=0),E.top=h+5+"px"),E;throw new Error("type '"+r+"' is invalid")}function mE(t,e){xn(function(){var r=hE(t);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),d=e.height(),p=l-o,v=c-i,h=e.attr("style");if(h.indexOf("top")>=0&&(n=p+d-u)>0){var m=e.css("top"),y=parseInt(m.toString())-n;y<0&&(y=0),e.css("top",y+"px")}if(h.indexOf("bottom")>=0&&l<0){var g=e.css("bottom"),w=parseInt(g.toString())-Math.abs(l);e.css("bottom",w+"px")}if(h.indexOf("left")>=0&&(n=v+f-a)>0){var E=e.css("left"),x=parseInt(E.toString())-n;x<0&&(x=0),e.css("left",x+"px")}if(h.indexOf("right")>=0&&c<0){var D=e.css("right"),S=parseInt(D.toString())-Math.abs(c);e.css("right",S+"px")}}})}var GQ=Xg("slice"),qQ=xe("species"),yE=Z.Array,KQ=Math.max;Se({target:"Array",proto:!0,forced:!GQ},{slice:function(t,e){var r,n,o,i=Vi(this),a=mu(i),u=Xs(t,a),s=Xs(e===void 0?a:e,a);if(Vg(i)&&(r=i.constructor,(zg(r)&&(r===yE||Vg(r.prototype))||pe(r)&&(r=r[qQ])===null)&&(r=void 0),r===yE||r===void 0))return fk(i,u,s);for(n=new(r===void 0?yE:r)(KQ(s-u,0)),o=0;u<s;u++,o++)u in i&&kf(n,o,i[u]);return n.length=o,n}});var YQ=xf.f,aB=pt("".startsWith),XQ=pt("".slice),$Q=Math.min,uB=q2("startsWith"),ZQ=!uB&&!!function(){var t=YQ(String.prototype,"startsWith");return t&&!t.writable}();Se({target:"String",proto:!0,forced:!ZQ&&!uB},{startsWith:function(t){var e=ue(wn(this));G2(t);var r=Ks($Q(arguments.length>1?arguments[1]:void 0,e.length)),n=ue(t);return aB?aB(e,n,r):XQ(e,r,r+n.length)===n}});var fl=Object.assign,sB=Object.defineProperty,JQ=pt([].concat),lB=!fl||Zt(function(){if(ir&&fl({b:1},fl(sB({},"a",{enumerable:!0,get:function(){sB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),fl({},t)[r]!=7||$s(fl({},e)).join("")!=n})?function(t,e){for(var r=Ri(t),n=arguments.length,o=1,i=oO.f,a=J9.f;n>o;)for(var u,s=Mg(arguments[o++]),l=i?JQ($s(s),i(s)):$s(s),c=l.length,f=0;c>f;)u=l[f++],ir&&!Gt(a,s,u)||(r[u]=s[u]);return r}:fl;Se({target:"Object",stat:!0,forced:Object.assign!==lB},{assign:lB});var QQ=["props","attrs","style","dataset","on","hook"];function cB(t){var e=t.data,r=e===void 0?{}:e,n=t.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(i){var a,u,s=r[i];if(i!=="key"){if(!QQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=xY(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(t,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(t,(u={},u[i]=s,u)),delete r[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&cB(i)})}var bE=[],fB={};function ttt(t,e,r){return bt(r.isInline(t)?"span":"div",null,e)}function dB(t,e){return e===void 0&&(e=!1),bt("span",{"data-slate-string":!0},e?t+`
59
+ `:t)}function wE(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),bt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?bt("br",null):null)}function EE(t,e,r,n){return If.set(t,e),rl.set(t,r),ft.isElement(t)?function(o,i){var a,u=O.findKey(i,o),s=i.isInline(o),l=C.isVoid(i,o),c=Rk(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,h=function(x){return fB[x]||ttt}(d);a=l?null:v.map(function(x,D){return EE(x,D,o,i)});var m=h(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",g=Ut(Q.texts(o),1),w=Ut(g[0],1)[0],E=bt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},EE(w,0,o,i));m=bt(y,{style:{position:"relative"}},m,E),If.set(w,0),rl.set(w,o)}return m.data==null&&(m.data={}),Object.assign(m.data,f),l||s||(m=function(x,D){var S=D;return bE.forEach(function(k){S=k(x,D)}),S}(o,m)),xn(function(){var x=Iw(c);x!=null&&(Tw.set(u,x),c0.set(o,x),l0.set(x,o))}),m}(t,n):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=O.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=O.findPath(a,o),c=s([o,l]),f=it.decorations(o,c),d=f.map(function(h,m){var y=function(g,w,E,x,D){w===void 0&&(w=!1);var S=g.text,k=O.findPath(D,E),F=I.parent(k);if(C.isEditor(x))throw new Error("Text node "+JSON.stringify(E)+" parent is Editor");return D.isVoid(x)?wE(Q.string(x).length):S!==""||x.children[x.children.length-1]!==E||D.isInline(x)||C.string(D,F)!==""?S===""?wE():w&&S.slice(-1)===`
60
+ `?dB(S,!0):dB(S):wE(0,!0)}(h,m===f.length-1,o,i,a);return y=function(g,w){var E=w;return bE.forEach(function(x){E=x(g,E)}),E}(h,y),bt("span",{"data-slate-leaf":!0},y)}),p=function(h){return"w-e-text-"+h}(u.id),v=bt("span",{"data-slate-node":"text",id:p,key:u.id},d);return xn(function(){var h=Iw(p);h!=null&&(Tw.set(u,h),c0.set(o,h),l0.set(h,o))}),v}(t,r,n)}function ett(t,e){var r,n=t.$scroll,o=function(h){return"w-e-textarea-"+h}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(h,m){return m===void 0&&(m=!1),Vs("div#"+h,{props:{contentEditable:!m}})}(o,a),l=e.children||[];s.children=l.map(function(h,m){var y=EE(h,m,e,e);return cB(y),y});var c=YO.get(t);if(c==null&&(c=!0),c){var f=function(h,m){return _(`<div
61
+ id="`+h+`"
62
+ data-slate-editor
63
+ data-slate-node="value"
64
+ suppressContentEditableWarning
65
+ role="textarea"
66
+ spellCheck="true"
67
+ autoCorrect="true"
68
+ autoCapitalize="true"
69
+ ></div>`)}(o);n.append(f),t.$textArea=f,r=f[0],(p=GK([KK,ZK,QK,YK,$K,qK]))(r,s),YO.set(t,!1),XO.set(t,p)}else{var d=$O.get(t),p=XO.get(t);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=Iw(o))!=null){if((c?u:e.isFocused())&&r.focus({preventScroll:!0}),c){var v=jw(r);v&&ZO.set(e,v)}Fw.set(e,r),c0.set(e,r),l0.set(r,e),$O.set(t,s)}}function pB(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function hB(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function CE(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return hB(r.overflowY,e)||hB(r.overflowX,e)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(t)}return!1}function w0(t,e,r,n,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=r||a>=e&&u>=r?i-t-n:a>e&&u<r||i<t&&u>r?a-e+o:0}function gB(t,e){var r=window,n=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(St){return St!==a};if(!pB(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;pB(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&CE(f)&&!CE(document.documentElement)||f!=null&&CE(f,u)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,m=t.getBoundingClientRect(),y=m.height,g=m.width,w=m.top,E=m.right,x=m.bottom,D=m.left,S=o==="start"||o==="nearest"?w:o==="end"?x:w+y/2,k=i==="center"?D+g/2:i==="end"?E:D,F=[],H=0;H<c.length;H++){var G=c[H],j=G.getBoundingClientRect(),L=j.height,z=j.width,K=j.top,X=j.right,nt=j.bottom,lt=j.left;if(n==="if-needed"&&w>=0&&D>=0&&x<=p&&E<=d&&w>=K&&x<=nt&&D>=lt&&E<=X)return F;var st=getComputedStyle(G),ut=parseInt(st.borderLeftWidth,10),B=parseInt(st.borderTopWidth,10),A=parseInt(st.borderRightWidth,10),N=parseInt(st.borderBottomWidth,10),W=0,$=0,q="offsetWidth"in G?G.offsetWidth-G.clientWidth-ut-A:0,at="offsetHeight"in G?G.offsetHeight-G.clientHeight-B-N:0;if(l===G)W=o==="start"?S:o==="end"?S-p:o==="nearest"?w0(h,h+p,p,B,N,h+S,h+S+y,y):S-p/2,$=i==="start"?k:i==="center"?k-d/2:i==="end"?k-d:w0(v,v+d,d,ut,A,v+k,v+k+g,g),W=Math.max(0,W+h),$=Math.max(0,$+v);else{W=o==="start"?S-K-B:o==="end"?S-nt+N+at:o==="nearest"?w0(K,nt,L,B,N+at,S,S+y,y):S-(K+L/2)+at/2,$=i==="start"?k-lt-ut:i==="center"?k-(lt+z/2)+q/2:i==="end"?k-X+A+q:w0(lt,X,z,ut,A+q,k,k+g,g);var vt=G.scrollLeft,yt=G.scrollTop;S+=yt-(W=Math.max(0,Math.min(yt+W,G.scrollHeight-L+at))),k+=vt-($=Math.max(0,Math.min(vt+$,G.scrollWidth-z+q)))}F.push({el:G,top:W,left:$})}return F}function vB(t){return t===Object(t)&&Object.keys(t).length!==0}function Sn(t,e){return Eu(e)&&O.hasDOMNode(t,e,{editable:!0})}function mB(t,e){if(t.getConfig().readOnly)return!1;var r=dl(t,e)&&O.toSlateNode(t,e);return C.isVoid(t,r)}function dl(t,e){return Eu(e)&&O.hasDOMNode(t,e)}function yB(t,e,r){r===void 0&&(r=!1);var n=e.selection,o=e.getConfig(),i=O.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||r)&&e.isFocused()){var a=i.type!=="None";if(n||a){var u=Fw.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=O.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&V.equals(l,n)){var c=!0;if(V.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!n||O.hasRange(e,n)){t.isUpdatingSelection=!0;var h=n&&O.toDOMRange(e,n);if(h){V.isBackward(n)?i.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):i.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var m=h.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=h.getBoundingClientRect.bind(h);var y=document.body;(function(g,w){var E=!g.ownerDocument.documentElement.contains(g);if(vB(w)&&typeof w.behavior=="function")return w.behavior(E?[]:gB(g,w));if(!E){var x=function(D){return D===!1?{block:"end",inline:"nearest"}:vB(D)?D:{block:"start",inline:"nearest"}}(w);(function(D,S){S===void 0&&(S="auto");var k="scrollBehavior"in document.body.style;D.forEach(function(F){var H=F.el,G=F.top,j=F.left;H.scroll&&k?H.scroll({top:G,left:j,behavior:S}):(H.scrollTop=G,H.scrollLeft=j)})})(gB(g,x),x.behavior)}})(m,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){h&&Lf&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=O.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var xE=new WeakMap,bB=new WeakMap,rtt={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},ntt={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},ott={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},me=function(t){var e=rtt[t],r=ntt[t],n=ott[t],o=e&&Zb(e),i=r&&Zb(r),a=n&&Zb(n);return function(u){return!(!o||!o(u))||!!(Lw&&i&&i(u))||!(Lw||!a||!a(u))}},De={isBold:me("bold"),isCompose:me("compose"),isMoveBackward:me("moveBackward"),isMoveForward:me("moveForward"),isDeleteBackward:me("deleteBackward"),isDeleteForward:me("deleteForward"),isDeleteLineBackward:me("deleteLineBackward"),isDeleteLineForward:me("deleteLineForward"),isDeleteWordBackward:me("deleteWordBackward"),isDeleteWordForward:me("deleteWordForward"),isExtendBackward:me("extendBackward"),isExtendForward:me("extendForward"),isExtendLineBackward:me("extendLineBackward"),isExtendLineForward:me("extendLineForward"),isItalic:me("italic"),isMoveLineBackward:me("moveLineBackward"),isMoveLineForward:me("moveLineForward"),isMoveWordBackward:me("moveWordBackward"),isMoveWordForward:me("moveWordForward"),isRedo:me("redo"),isSplitBlock:me("splitBlock"),isTransposeCharacter:me("transposeCharacter"),isUndo:me("undo"),isTab:me("tab"),isSelectAll:me("selectAll")};function Ke(t){t.preventDefault()}var itt={beforeinput:function(t,e,r){var n=t,o=r.getConfig().readOnly;if(Mf&&!o&&Sn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ut(n.getTargetRanges(),1)[0];if(s){var l=O.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&V.equals(i,l)||R.select(r,l)}}if(i&&V.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";C.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":C.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":C.deleteForward(r);break;case"deleteContentBackward":C.deleteBackward(r);break;case"deleteEntireSoftLine":C.deleteBackward(r,{unit:"line"}),C.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":C.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":C.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":C.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":C.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":C.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":C.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":C.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Nw.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&C.insertText(r,u)}}}},blur:function(t,e,r){var n=t,o=e.isUpdatingSelection,i=e.latestElement;if(!r.getConfig().readOnly&&!o&&Sn(r,n.target)){var a=O.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===O.toDOMNode(r,r)||Wn(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Eu(u)&&O.hasDOMNode(r,u)){var s=O.toSlateNode(r,u);if(ft.isElement(s)&&!r.isVoid(s))return}if(Rf){var l=a.getSelection();l==null||l.removeAllRanges()}wu.delete(r)}}}},focus:function(t,e,r){var n=O.toDOMNode(r,r),o=O.findDocumentOrShadowRoot(r);e.latestElement=o.activeElement,Lf&&t.target!==n?n.focus():wu.set(r,!0)},click:function(t,e,r){if(!r.getConfig().readOnly&&dl(r,t.target)&&Eu(t.target)){var n=O.toSlateNode(r,t.target),o=O.findPath(r,n);if(C.hasPath(r,o)&&Q.get(r,o)===n){var i=C.start(r,o),a=C.end(r,o),u=C.void(r,{at:i}),s=C.void(r,{at:a});if(u&&s&&I.equals(u[1],s[1])){var l=C.range(r,i);R.select(r,l)}}}},compositionstart:function(t,e,r){if(Sn(r,t.target)){var n=r.selection;if(n&&V.isExpanded(n)&&(C.deleteFragment(r),Promise.resolve().then(function(){yB(e,r,!0)})),n&&V.isCollapsed(n)){var o=O.toDOMRange(r,n).startContainer,i=o.textContent||"";xE.set(r,i),bB.set(r,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,r)}},compositionend:function(t,e,r){var n=t;if(Sn(r,n.target)){e.isComposing=!1;var o=r.selection;if(o!=null){(Rw||Lf)&&O.cleanExposedTexNodeInSelectionBlock(r);for(var i=V.isBackward(o)?o.focus:o.anchor,a=Ut(C.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ut(C.node(r,i.path.slice(0,u+1)),1)[0];if(ft.isElement(s)&&((Rf||Lf)&&s.type==="link"||s.type==="code")){O.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=O.getLeftLengthOfMaxLength(r);c<l.length?(O.toDOMRange(r,o).startContainer.textContent=xE.get(r)||"",c>0&&C.insertText(r,l.slice(0,c)),e.changeViewState()):C.insertText(r,l)}else C.insertText(r,l);Rf||setTimeout(function(){var f=r.selection;if(f!=null){var d=bB.get(r);d!=null&&O.toDOMRange(r,f).startContainer!==d&&(d.textContent=xE.get(r)||"")}})}}}},compositionupdate:function(t,e,r){Sn(r,t.target)&&(e.isComposing=!0)},keydown:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&!e.isComposing&&Sn(r,n.target)){if(function(a,u){var s=a0.get(a),l=s&&s.getMenus(),c=u0.get(a),f=c&&c.getMenus(),d=En(En({},l),f);for(var p in d){var v=d[p],h=v.hotkey;if(h&&AY(h,u)&&!v.isDisabled(a)){var m=v.getValue(a);v.exec(a,m)}}}(r,n),De.isTab(n))return Ke(n),void r.handleTab();if(De.isRedo(n))return Ke(n),void(typeof r.redo=="function"&&r.redo());if(De.isUndo(n))return Ke(n),void(typeof r.undo=="function"&&r.undo());if(De.isMoveLineBackward(n))return Ke(n),void R.move(r,{unit:"line",reverse:!0});if(De.isMoveLineForward(n))return Ke(n),void R.move(r,{unit:"line"});if(De.isExtendLineBackward(n))return Ke(n),void R.move(r,{unit:"line",edge:"focus",reverse:!0});if(De.isExtendLineForward(n))return Ke(n),void R.move(r,{unit:"line",edge:"focus"});if(De.isMoveBackward(n))return Ke(n),void(o&&V.isCollapsed(o)?R.move(r,{reverse:!0}):R.collapse(r,{edge:"start"}));if(De.isMoveForward(n))return Ke(n),void(o&&V.isCollapsed(o)?R.move(r):R.collapse(r,{edge:"end"}));if(De.isMoveWordBackward(n))return Ke(n),o&&V.isExpanded(o)&&R.collapse(r,{edge:"focus"}),void R.move(r,{unit:"word",reverse:!0});if(De.isMoveWordForward(n))return Ke(n),o&&V.isExpanded(o)&&R.collapse(r,{edge:"focus"}),void R.move(r,{unit:"word"});if(De.isSelectAll(n))return Ke(n),void r.selectAll();if(Mf){if((Rw||Rf)&&o&&(De.isDeleteBackward(n)||De.isDeleteForward(n))&&V.isCollapsed(o)){var i=Q.parent(r,o.anchor.path);if(ft.isElement(i)&&C.isVoid(r,i)&&C.isInline(r,i))return n.preventDefault(),void R.delete(r,{unit:"block"})}}else{if(De.isBold(n)||De.isItalic(n)||De.isTransposeCharacter(n))return void Ke(n);if(De.isSplitBlock(n))return Ke(n),void C.insertBreak(r);if(De.isDeleteBackward(n))return Ke(n),void(o&&V.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r));if(De.isDeleteForward(n))return Ke(n),void(o&&V.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r));if(De.isDeleteLineBackward(n))return Ke(n),void(o&&V.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r,{unit:"line"}));if(De.isDeleteLineForward(n))return Ke(n),void(o&&V.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r,{unit:"line"}));if(De.isDeleteWordBackward(n))return Ke(n),void(o&&V.isExpanded(o)?C.deleteFragment(r,{direction:"backward"}):C.deleteBackward(r,{unit:"word"}));if(De.isDeleteWordForward(n))return Ke(n),void(o&&V.isExpanded(o)?C.deleteFragment(r,{direction:"forward"}):C.deleteForward(r,{unit:"word"}))}}},keypress:function(t,e,r){if(!Mf&&!r.getConfig().readOnly&&Sn(r,t.target)){t.preventDefault();var n=t.key;C.insertText(r,n)}},copy:function(t,e,r){var n=t;if(Sn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&Sn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(V.isExpanded(o))C.deleteFragment(r);else{var a=Q.parent(r,o.anchor.path);C.isVoid(r,a)&&R.delete(r)}}},paste:function(t,e,r){Nw.set(r,!0);var n=t;if(!r.getConfig().readOnly&&Sn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void Nw.set(r,!1);if(!Mf||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(t,e,r){if(dl(r,t.target)){var n=O.toSlateNode(r,t.target);C.isVoid(r,n)&&t.preventDefault()}},dragstart:function(t,e,r){var n=t;if(dl(r,n.target)&&!r.getConfig().readOnly){var o=O.toSlateNode(r,n.target),i=O.findPath(r,o);if(C.isVoid(r,o)||C.void(r,{at:i,voids:!0})){var a=C.range(r,i);R.select(r,a)}var u=n.dataTransfer;u!=null&&(e.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(t,e,r){var n=t;r.getConfig().readOnly||e.isDraggingInternally&&dl(r,n.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,r){var n=t,o=n.dataTransfer;if(!r.getConfig().readOnly&&dl(r,n.target)&&o!=null&&!(Mf&&Rf&&o.files.length>0)){n.preventDefault();var i=r.selection,a=O.findEventRange(r,n);R.select(r,a),e.isDraggingInternally&&(i&&R.delete(r,{at:i}),e.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},att=1,utt=function(){function t(e){var r=this;this.id=att++,this.$textArea=null,this.$progressBar=_('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=_('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=ou(function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=O.findDocumentOrShadowRoot(s),p=d.activeElement,v=O.toDOMNode(s,s),h=d.getSelection();if(p===v?(u.latestElement=p,wu.set(s,!0)):wu.delete(s),!h)return R.deselect(s);var m=h.anchorNode,y=h.focusNode,g=Sn(s,m)||mB(s,m),w=Sn(s,y)||mB(s,y);if(g&&w){var E=O.toSlateRange(s,h,{exactMatch:!1,suppressThrow:!1});R.select(s,E)}else R.deselect(s)}})(r,a)},100);var n=_(e);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var o=_('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=_('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,xn(function(){var a=r.editorInstance,u=O.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=Aw.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(Mb(itt,function(i,a){r.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",ou(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){e.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):e.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),e.latestEditorSelection=r.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,r=e.getConfig().maxLength;if(r){var n=r-O.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},t.prototype.changeProgress=function(e){var r=this.$progressBar;r.css("width",e+"%"),e>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},t.prototype.changeViewState=function(){var e=this,r=this.editorInstance;ett(this,r),function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=_('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}}(this,r),xn(function(){yB(e,r)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function SE(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&SE(e)}function DE(){return _('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function wB(){return _('<div class="w-e-bar-divider"></div>')}function EB(t,e,r,n,o){if(o===void 0&&(o=!1),e){if(n){var i=Lw?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(t.attr("data-tooltip",n),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=n?r+`
70
+ `+n:r;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}dw("match",function(t,e,r){return[function(n){var o=wn(this),i=n==null?void 0:hu(n,t);return i?Gt(i,n,o):new RegExp(n)[t](ue(o))},function(n){var o=Le(this),i=ue(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Ff(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Ff(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=pw(i,Ks(o.lastIndex),u)),c++}return c===0?null:l}]});var AE=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=_('<div class="w-e-bar-item"></div>'),this.$button=_('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=_(f);SE(p),d.append(p)}else d.text(u);EB(d,f,u,l,n),n&&f&&d.append(_('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",e),this.$elem.append(d),xn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),un(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=un(this),r=this.menu,n=r.getValue(e);r.exec(e,n)},t.prototype.setActive=function(){var e=un(this),r=this.$button,n="active";this.menu.isActive(e)?r.addClass(n):r.removeClass(n)},t.prototype.setDisabled=function(){var e=un(this),r=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),stt=function(t){function e(r,n,o){return o===void 0&&(o=!1),t.call(this,r,n,o)||this}return tl(e,t),e.prototype.onButtonClick=function(){},e}(AE),OE=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var r=_w.get(e);r==null&&(r=new Set,_w.set(e,r)),r.add(this),s0.set(this,e)},t.prototype.renderContent=function(e){var r=this.$elem;r.empty(),r.append(e);var n=this.genSelfElem();n&&r.append(n)},t.prototype.appendTo=function(e){var r=this.$elem;e.append(r)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=s0.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=s0.get(this);e&&e.emit("modalOrPanelHide")}},t}(),ltt=function(t){function e(r){var n=t.call(this,r)||this;return n.type="dropPanel",n.$elem=_('<div class="w-e-drop-panel"></div>'),n}return tl(e,t),e.prototype.genSelfElem=function(){return null},e}(OE),ctt=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=DE();i.$button.append(a)}return i}return tl(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=un(this);if(this.dropPanel==null){var o=new ltt(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(AE),ftt=function(t){function e(r,n){n===void 0&&(n=0);var o=t.call(this,r)||this;o.type="modal",o.$elem=_('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return tl(e,t),e.prototype.genSelfElem=function(){var r=this,n=_('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=s0.get(this);return n.on("click",function(){r.hide(),o==null||o.restoreSelection()}),n},e.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},e}(OE);function an(t,e,r){var n=_('<label class="babel-container"></label>');n.append("<span>"+t+"</span>");var o=_('<input type="text" id="'+e+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function pl(t,e){var r=_('<div class="button-container"></div>'),n=_('<button type="button" id="'+t+'">'+e+"</button>");return r.append(n),[r[0],n[0]]}var dtt=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;return i.$body=_("body"),i.modal=null,i.menu=n,i}return tl(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var r=un(this),n=this.menu.getModalPositionNode(r);return ft.isElement(n)?vE(r,n,"modal"):gE(r)},e.prototype.handleModal=function(){var r=un(this),n=this.menu;if(this.modal==null){var o=new ftt(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=un(this),i=this.menu;if(i.getModalContentElem!=null){var a=O.getTextarea(o),u=O.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||mE(o,r.$elem),setTimeout(function(){o.blur()})}},e}(AE),ptt=function(t){function e(r,n){var o=t.call(this,r)||this;return o.type="selectList",o.$elem=_('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return tl(e,t),e.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=_("<ul></ul>");r.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=_('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=_('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(_('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),n.append(o)},e.prototype.genSelfElem=function(){return null},e}(OE),htt=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=_('<div class="w-e-bar-item"></div>'),this.$button=_('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),EB(d,l,a,f,n),this.$elem.append(d),this.menu=r,xn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),un(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,r=un(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new ptt(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=_(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var r=un(this),n=this.menu;n.exec&&n.exec(r,e)},t.prototype.setSelectedValue=function(){var e=un(this),r=this.menu,n=r.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(r.getOptions(e),n.toString()),i=this.$button,a=DE();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=un(this),r=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),CB=function(){function t(e){this.$elem=_('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=_('<div class="w-e-bar-item-menus-container"></div>'),this.$button=_('<button type="button"></button>');var r=e.key,n=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(n){var u=_(n);SE(u),a.append(u)}else a.text(o);a.attr("data-menu-key",r);var s=DE();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var r=e.$elem;this.$container.append(r)},t.prototype.observe=function(e){var r=this.$container;e.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var i=r.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){_(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?n.addClass("disabled"):n.removeClass("disabled"),e.observe(o)}});return o},t}(),xB=new WeakMap;function un(t){var e=Bw.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function SB(t,e,r){r===void 0&&(r=!1);var n=xB.get(e);if(n)return n;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;n=i?new ctt(t,e,r):a?new dtt(t,e,r):new stt(t,e,r)}if(o==="select"&&(n=new htt(t,e,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return xB.set(e,n),n}function gtt(t,e){var r=t.selection;return r!=null&&!V.isCollapsed(r)&&!O.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!it.isText(e)}var vtt=function(){function t(){var e=this;this.$elem=_('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Y7(function(){var r=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ft.isElement(i)&&r&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),xn(function(){var r=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),O.getTextarea(r).$textAreaContainer.append(n),r.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(r=!0),r?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;xn(function(){e.hoverbarItems.forEach(function(r){r.changeMenuState()})})},t.prototype.registerItems=function(e){var r=this,n=this.$elem;e.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var i=wB();n.append(i)}})},t.prototype.registerSingleItem=function(e){var r=this.getEditorInstance(),n=this.menus,o=n[e];if(o==null){var i=Vf[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),n[e]=o}var a=SB(e,o);this.hoverbarItems.push(a),Bw.set(a,r),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ft.isElement(e)){var o=vE(r,e,"bar");return n.css(o),void mE(r,n)}if(it.isText(e))return o=gE(r),n.css(o),void mE(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(h,m){return O.checkNodeType(m,u)},p=Ut(C.nodes(e,{match:function(h){return d(e,h)},universal:!0}),1),v=p[0];if(v!=null)return n=v[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=kw.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,r=e===void 0?{}:e,n=r.text;return n&&n.match==null&&(n.match=gtt),r},t.prototype.isSamePath=function(e,r){if(e==null||r==null)return!1;var n=O.findPath(null,e),o=O.findPath(null,r);return I.equals(n,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function DB(t,e,r,n){if(If.set(t,e),rl.set(t,r),ft.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return DB(u,s,t,n)}),C.isVoid(n,t)){var i=Ut(Q.texts(t),1),a=Ut(i[0],1)[0];If.set(a,0),rl.set(a,t)}}}function mtt(t){var e=t.selector,r=e===void 0?"":e,n=t.config,o=n===void 0?{}:n,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var g=y,{apply:w}=g;return g.history={undos:[],redos:[]},g.redo=()=>{var{history:E}=g,{redos:x}=E;if(x.length>0){var D=x[x.length-1];Zs.withoutSaving(g,()=>{C.withoutNormalizing(g,()=>{for(var S of D)g.apply(S)})}),E.redos.pop(),E.undos.push(D)}},g.undo=()=>{var{history:E}=g,{undos:x}=E;if(x.length>0){var D=x[x.length-1];Zs.withoutSaving(g,()=>{C.withoutNormalizing(g,()=>{var S=D.map(ki.inverse).reverse();for(var k of S)g.apply(k)})}),E.redos.push(D),E.undos.pop()}},g.apply=E=>{var{operations:x,history:D}=g,{undos:S}=D,k=S[S.length-1],F=k&&k[k.length-1],H=((z,K)=>!(!K||z.type!=="set_selection"||K.type!=="set_selection"))(E,F),G=Zs.isSaving(g),j=Zs.isMerging(g);if(G==null&&(G=((z,K)=>z.type!=="set_selection"||z.properties!=null&&z.newProperties!=null)(E)),G){if(j==null&&(j=k!=null&&(x.length!==0||((z,K)=>z.type==="set_selection"||!(!K||z.type!=="insert_text"||K.type!=="insert_text"||z.offset!==K.offset+K.text.length||!I.equals(z.path,K.path))||!(!K||z.type!=="remove_text"||K.type!=="remove_text"||z.offset+z.text.length!==K.offset||!I.equals(z.path,K.path)))(E,F)||H)),k&&j)H&&k.pop(),k.push(E);else{var L=[E];S.push(L)}for(;S.length>100;)S.shift();(z=>z.type!=="set_selection")(E)&&(D.redos=[])}w(E)},g})(function(y){var g=y,w=g.insertText,E=g.insertNode,x=g.insertFragment,D=g.dangerouslyInsertHtml;return g.insertText=function(S){if(g.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(g);k<=0||(k<S.length?w(S.slice(0,k)):w(S))}else w(S)},g.insertNode=function(S){if(g.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(g);k<=0||k<Q.string(S).length||E(S)}else E(S)},g.insertFragment=function(S){if(g.getConfig().maxLength)if(S.length!==1)S.forEach(function(F){g.insertNode(F)});else{var k=S[0];if(O.getLeftLengthOfMaxLength(g)<Q.string(k).length)return;x(S)}else x(S)},g.dangerouslyInsertHtml=function(S,k){if(S===void 0&&(S=""),k===void 0&&(k=!1),S)if(g.getConfig().maxLength){var F=O.getLeftLengthOfMaxLength(g);if(!(F<=0)){var H=document.createElement("div");H.innerHTML=S;var G=Array.from(H.childNodes).reduce(function(j,L){var z=L.nodeType,K=L.nodeName;return L?z===vo.TEXT_NODE?j+(L.textContent||""):z===vo.ELEMENT_NODE?tB.has(K.toLowerCase())?j:j+(L.textContent||""):j:j},"");F<G.length||D(S,k)}}else D(S,k)},g}(function(y){var g=y;return g.on=function(w,E){var x=y0(g);if(x.on(w,E),w==="destroyed"&&iB(g,E),w!=="destroyed"){var D=function(){return x.off(w,E)};x.on("destroyed",D),iB(g,D)}},g.once=function(w,E){y0(g).once(w,E)},g.off=function(w,E){y0(g).off(w,E)},g.emit=function(w){for(var E=[],x=1;x<arguments.length;x++)E[x-1]=arguments[x];var D=y0(g);D.emit.apply(D,bw([w],Ut(E))),w==="destroyed"&&(UQ(g).forEach(function(S){return D.off("destroyed",S)}),WQ(g))},g}(function(y){var g=y;return g.select=function(w){R.select(g,w)},g.deselect=function(){var w=g.selection,E=O.findDocumentOrShadowRoot(g).getSelection();E&&E.rangeCount>0&&E.removeAllRanges(),w&&R.deselect(y)},g.move=function(w,E){E===void 0&&(E=!1),w&&(w<0||R.move(y,{distance:w,unit:"character",reverse:E}))},g.moveReverse=function(w){g.move(w,!0)},g.restoreSelection=function(){var w=Pw.get(g);w!=null&&(g.focus(),R.select(g,w))},g.getSelectionPosition=function(){return gE(g)},g.getNodePosition=function(w){return vE(g,w)},g.isSelectedAll=function(){var w=g.selection;if(w==null)return!1;var E=Ut(V.edges(w),2),x=E[0],D=E[1],S=Ut(C.edges(g,[]),2),k=S[0],F=S[1];return!(!_t.equals(x,k)||!_t.equals(D,F))},g.selectAll=function(){var w=C.start(g,[]),E=C.end(g,[]);R.select(g,{anchor:w,focus:E})},g}(function(y){var g=y,w=g.onChange,E=g.insertText,x=g.apply,D=g.deleteBackward;return g.insertText=function(S){g.getConfig().readOnly||E(S)},g.apply=function(S){var k,F,H,G,j,L,z,K,X=[];switch(S.type){case"insert_text":case"remove_text":case"set_node":try{for(var nt=Cn(C.levels(g,{at:S.path})),lt=nt.next();!lt.done;lt=nt.next()){var st=Ut(lt.value,2),ut=st[0],B=st[1],A=O.findKey(g,ut);X.push([B,A])}}catch(Rt){k={error:Rt}}finally{try{lt&&!lt.done&&(F=nt.return)&&F.call(nt)}finally{if(k)throw k.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var N=Cn(C.levels(g,{at:I.parent(S.path)})),W=N.next();!W.done;W=N.next()){var $=Ut(W.value,2);ut=$[0],B=$[1],A=O.findKey(g,ut),X.push([B,A])}}catch(Rt){H={error:Rt}}finally{try{W&&!W.done&&(G=N.return)&&G.call(N)}finally{if(H)throw H.error}}break;case"move_node":try{for(var q=Cn(C.levels(g,{at:I.common(I.parent(S.path),I.parent(S.newPath))})),at=q.next();!at.done;at=q.next()){var vt=Ut(at.value,2);ut=vt[0],B=vt[1],A=O.findKey(g,ut),X.push([B,A])}}catch(Rt){j={error:Rt}}finally{try{at&&!at.done&&(L=q.return)&&L.call(q)}finally{if(j)throw j.error}}}x(S);try{for(var yt=Cn(X),St=yt.next();!St.done;St=yt.next()){var Y=Ut(St.value,2);B=Y[0],A=Y[1],ut=Ut(C.node(g,B),1)[0],f0.set(ut,A)}}catch(Rt){z={error:Rt}}finally{try{St&&!St.done&&(K=yt.return)&&K.call(yt)}finally{if(z)throw z.error}}},g.deleteBackward=function(S){if(S!=="line")return D(S);if(y.selection&&V.isCollapsed(y.selection)){var k=C.above(y,{match:function(j){return C.isBlock(y,j)},at:y.selection});if(k){var F=Ut(k,2)[1],H=C.range(y,F,y.selection.anchor),G=function(j,L){var z=C.range(j,V.end(L)),K=Array.from(C.positions(j,{at:L})),X=0,nt=K.length,lt=Math.floor(nt/2);if(Vk(j,C.range(j,K[X]),z))return C.range(j,K[X],z);if(K.length<2)return C.range(j,K[K.length-1],z);for(;lt!==K.length&&lt!==X;)Vk(j,C.range(j,K[lt]),z)?nt=lt:X=lt,lt=Math.floor((X+nt)/2);return C.range(j,K[nt],z)}(g,H);V.isCollapsed(G)||R.delete(y,{at:G})}}},g.onChange=function(){var S=g.selection;S!=null&&Pw.set(g,S),g.emit("change"),w()},g.handleTab=function(){g.insertText(" ")},g.getHtml=function(){var S=g.children;return(S===void 0?[]:S).map(function(k){return Lk(k,g)}).join("")},g.getText=function(){var S=g.children;return(S===void 0?[]:S).map(function(k){return Q.string(k)}).join(`
71
+ `)},g.getSelectionText=function(){var S=g.selection;return S==null?"":C.string(y,S)},g.getElemsByType=function(S,k){var F,H;k===void 0&&(k=!1);var G=[],j=C.nodes(g,{at:[],universal:!0});try{for(var L=Cn(j),z=L.next();!z.done;z=L.next()){var K=Ut(z.value,1)[0];if(ft.isElement(K)&&(k?K.type.indexOf(S)>=0:K.type===S)){var X=Rk(O.findKey(g,K).id);G.push(En(En({},K),{id:X}))}}}catch(nt){F={error:nt}}finally{try{z&&!z.done&&(H=L.return)&&H.call(L)}finally{if(F)throw F.error}}return G},g.getElemsByTypePrefix=function(S){return g.getElemsByType(S,!0)},g.isEmpty=function(){var S=g.children,k=S===void 0?[]:S;if(k.length>1)return!1;var F=k[0];if(F==null)return!0;if(ft.isElement(F)&&F.type==="paragraph"){var H=F.children,G=H===void 0?[]:H;if(G.length>1)return!1;var j=G[0];if(j==null||it.isText(j)&&j.text==="")return!0}return!1},g.clear=function(){R.delete(g,{at:{anchor:C.start(g,[]),focus:C.end(g,[])}}),g.children.length===0&&R.insertNodes(g,[{type:"paragraph",children:[{text:""}]}])},g.getParentNode=function(S){return O.getParentNode(g,S)},g.dangerouslyInsertHtml=function(S,k){if(S===void 0&&(S=""),k===void 0&&(k=!1),S){var F=document.createElement("div");F.innerHTML=S;var H=Array.from(F.childNodes);if(H=H.filter(function(z){var K=z.nodeType,X=z.nodeName;return K===vo.TEXT_NODE||K===vo.ELEMENT_NODE&&!tB.has(X.toLowerCase())}),H.length!==0){var G=g.selection;if(G!=null){var j=null;O.isSelectedEmptyParagraph(g)&&!k&&(j=[G.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var L=0;H.forEach(function(z){var K=z.nodeType,X=z.nodeName,nt=z.textContent,lt=nt===void 0?"":nt;if(K!==vo.TEXT_NODE)if(X!=="BR"){var st=z,ut=!1;if(zk.includes(X.toLowerCase()))ut=!0;else for(var B in g0)if(st.matches(B)){ut=!0;break}if(ut){var A=lE(_(st),g);return Array.isArray(A)?(A.forEach(function(W){return eB(g,W)}),L++):(eB(g,A),L++),void(O.isSelectedVoidNode(g)&&g.move(1))}var N=window.getComputedStyle(st).display;O.isSelectedEmptyParagraph(g)||N.indexOf("inline")<0&&g.insertBreak(),g.dangerouslyInsertHtml(st.innerHTML,!0)}else g.insertText(`
72
+ `);else{if(!lt||!lt.trim())return;g.insertNode({text:lt})}}),L&&j&&O.isEmptyPath(g,j)&&R.removeNodes(g,{at:j}),F.remove()}}}},g.setHtml=function(S){S===void 0&&(S="");var k=g.isDisabled(),F=g.isFocused(),H=JSON.stringify(g.selection);g.enable(),g.focus(),g.clear();var G=Zk(g,S);if(R.insertFragment(g,G),F||(g.deselect(),g.blur()),k&&(g.deselect(),g.disable()),g.isFocused())try{g.select(JSON.parse(H))}catch{g.select(C.start(g,[]))}},g}(function(y){var g=y;return g.getAllMenuKeys=function(){var w=[];for(var E in Vf)w.push(E);return w},g.getConfig=function(){var w=KO.get(g);if(w==null)throw new Error("Can not get editor config");return w},g.getMenuConfig=function(w){var E=g.getConfig().MENU_CONF;return(E===void 0?{}:E)[w]||{}},g.alert=function(w,E){E===void 0&&(E="info");var x=g.getConfig().customAlert;x&&x(w,E)},g}(function(y){var g=_Q(QG());return g.id="wangEditor-"+LJ++,g.isDestroyed=!1,g.isFullScreen=!1,g.focus=function(w){if(O.toDOMNode(g,g).focus({preventScroll:!0}),wu.set(g,!0),w){var E=C.end(g,[]);R.select(g,E)}else{var x=Pw.get(g);x?R.select(g,x):R.select(g,C.start(g,[]))}},g.isFocused=function(){return!!wu.get(g)},g.blur=function(){O.toDOMNode(g,g).blur(),R.deselect(g),wu.set(g,!1)},g.updateView=function(){O.getTextarea(g).changeViewState();var w=O.getToolbar(g);w&&w.changeToolbarState();var E=O.getHoverbar(g);E&&E.changeHoverbarState()},g.destroy=function(){if(!g.isDestroyed){var w=O.getTextarea(g);w.destroy(),Dw.delete(g),Aw.delete(w);var E=O.getToolbar(g);E&&(E.destroy(),a0.delete(g),Ow.delete(E));var x=O.getHoverbar(g);x&&(x.destroy(),u0.delete(g),kw.delete(x)),g.isDestroyed=!0,g.emit("destroyed")}},g.scrollToElem=function(w){if(!g.getConfig().scroll){var E="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return E+=`
73
+ You has disabled editor scroll, please do this yourself`,void console.warn(E)}var x=_("#"+w);if(x.length!==0){var D=x[0];if(!O.hasDOMNode(g,D))return E="Element (found by id is '"+w+"') is not in editor DOM",E+=`
74
+ 通过 id '`+w+"' 找到的 element 不在 editor DOM 之内",void console.error(E,D);var S=O.getTextarea(g),k=S.$textAreaContainer,F=S.$scroll,H=x.offset().top,G=k.offset().top;F[0].scrollBy({top:H-G,behavior:"smooth"})}},g.showProgressBar=function(w){w<1||O.getTextarea(g).changeProgress(w)},g.hidePanelOrModal=function(){var w=_w.get(g);w!=null&&w.forEach(function(E){return E.hide()})},g.enable=function(){g.getConfig().readOnly=!1,g.updateView()},g.disable=function(){g.getConfig().readOnly=!0,g.updateView()},g.isDisabled=function(){return g.getConfig().readOnly},g.toDOMNode=function(w){return O.toDOMNode(g,w)},g.fullScreen=function(){if(!g.isFullScreen){var w=null,E=O.getToolbar(g);E&&(w=E.$box);var x=O.getTextarea(g).$box.parent();if(w&&w.parent()[0]!==x[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
75
+ 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);x.addClass("w-e-full-screen-container");var D=x.css("z-index");x.attr("data-z-index",D.toString()),g.isFullScreen=!0,g.emit("fullScreen")}},g.unFullScreen=function(){if(g.isFullScreen){var w=O.getTextarea(g).$box.parent();setTimeout(function(){w.removeClass("w-e-full-screen-container"),g.isFullScreen=!1,g.emit("unFullScreen")},200)}},g.getEditableContainer=function(){return O.getTextarea(g).$textAreaContainer[0]},g}()))))));if(r&&function(y,g){return $k(y,"data-w-e-textarea",g)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(y){y===void 0&&(y={});var g=X7(ik),w={},E=y.MENU_CONF,x=E===void 0?{}:E;return Mb(g,function(D,S){w[S]=En(En({},D),x[S]||{})}),delete y.MENU_CONF,En({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:w,hoverbarKeys:{},customAlert:function(D,S){window.alert(S+`:
76
+ `+D)}},y)}(o);KO.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=Zk(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),O.normalizeContent(l),r){var p=new utt(r);Dw.set(l,p),Aw.set(p,l),p.changeViewState(),xn(function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
77
+ Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var v=void 0;Object.keys(d).length>0&&(v=new vtt,kw.set(v,l),u0.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,g){return DB(y,g,l,l)});var h=c.onCreated,m=c.onDestroyed;return h&&l.on("created",function(){return h(l)}),m&&l.on("destroyed",function(){return m(l)}),xn(function(){return l.emit("created")}),l}var ytt=Xg("splice"),btt=Z.TypeError,wtt=Math.max,Ett=Math.min;Se({target:"Array",proto:!0,forced:!ytt},{splice:function(t,e){var r,n,o,i,a,u,s=Ri(this),l=mu(s),c=Xs(t,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=Ett(wtt(wf(e),0),l-c)),l+r-n>9007199254740991)throw btt("Maximum allowed length exceeded");for(o=q9(s,n),i=0;i<n;i++)(a=c+i)in s&&kf(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var Ctt=function(){function t(e,r){var n=this;this.$toolbar=_('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Y7(function(){n.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=r;var o=_(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),xn(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,r="",n=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=X7(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,h){f.splice(s.index+h,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,h){if(v==="|"){if(h===0||h+1===p||r==="|")return;var m=wB();return n.append(m),void(r=v)}if(typeof v=="string")return e.registerSingleItem(v,e),void(r=v);e.registerGroup(v),r="group"})},t.prototype.registerGroup=function(e){var r=this,n=this.$toolbar,o=function(l){return new CB(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||r.registerSingleItem(l,o)}),n.append(o.$elem)},t.prototype.registerSingleItem=function(e,r){var n=this.getEditorInstance(),o=r instanceof CB,i=this.menus,a=i[e];if(a==null){var u=Vf[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
78
+ 重复注册了菜单栏 menu '`+e+"'");var s=SB(e,a,o);this.toolbarItems.push(s),Bw.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=Ow.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),xtt=qs.EXISTS,Stt=zn.f,AB=Function.prototype,Dtt=pt(AB.toString),OB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Att=pt(OB.exec);function kB(t){var e=t.server,r=e===void 0?"":e,n=t.fieldName,o=n===void 0?"":n,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,d=f!==void 0&&f,p=t.headers,v=p===void 0?{}:p,h=t.withCredentials,m=h!==void 0&&h,y=t.timeout,g=y===void 0?1e4:y,w=t.onBeforeUpload,E=w===void 0?function(L){return L}:w,x=t.onSuccess,D=x===void 0?function(L,z){}:x,S=t.onError,k=S===void 0?function(L,z,K){console.error(L.name+" upload error",z,K)}:S,F=t.onProgress,H=F===void 0?function(L){}:F;if(!r)throw new Error(`Cannot get upload server address
79
+ 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
80
+ 没有配置 fieldName`);var G=r;d&&(G=function(L,z){var K=Ut(L.split("#"),2),X=K[0],nt=K[1],lt=[];Mb(z,function(ut,B){lt.push(B+"="+ut)});var st=lt.join("&");return X=X.indexOf("?")>0?X+"&"+st:X+"?"+st,nt?X+"#"+nt:X}(G,c));var j=new sf({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(ZX,{endpoint:G,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:g});return j.on("upload-success",function(L,z){var K=z.body,X=K===void 0?{}:K;try{D(L,X)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}j.removeFile(L.id)}),j.on("progress",function(L){L<1||H(L)}),j.on("upload-error",function(L,z,K){try{k(L,z,K)}catch(X){console.error("wangEditor upload file - onError error",X)}j.removeFile(L.id)}),j.on("restriction-failed",function(L,z){try{k(L,z)}catch(K){console.error("wangEditor upload file - onError error",K)}j.removeFile(L.id)}),j}function Ui(t){return Ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(t)}function Ott(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ye(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){Ott(t,o,r[o])})}return t}function Qo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BB(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ti(t,e,r){return e&&BB(t.prototype,e),r&&BB(t,r),t}function Du(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $f(t,e){if(e&&(Ui(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Du(t)}function hl(t){return hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hl(t)}function kE(t,e){return kE=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},kE(t,e)}function E0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kE(t,e)}ir&&!xtt&&Stt(AB,"name",{configurable:!0,get:function(){try{return Att(OB,Dtt(this))[1]}catch{return""}}});var ktt={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},ei=new(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Qo(this,t),this.init(e,r)}return ti(t,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||ktt,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,r,n,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[r](e))}},{key:"create",value:function(e){return new t(this.logger,Ye({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Wi=function(){function t(){Qo(this,t),this.observers={}}return ti(t,[{key:"on",value:function(e,r){var n=this;return e.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(e,r){this.observers[e]&&(r?this.observers[e]=this.observers[e].filter(function(n){return n!==r}):delete this.observers[e])}},{key:"emit",value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(n))})}}}]),t}();function Zf(){var t,e,r=new Promise(function(n,o){t=n,e=o});return r.resolve=t,r.reject=e,r}function _B(t){return t==null?"":""+t}function Btt(t,e,r){t.forEach(function(n){e[n]&&(r[n]=e[n])})}function BE(t,e,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:n(i.shift())}}function FB(t,e,r){var n=BE(t,e,Object);n.obj[n.k]=r}function C0(t,e){var r=BE(t,e),n=r.obj,o=r.k;if(n)return n[o]}function TB(t,e,r){var n=C0(t,r);return n!==void 0?n:C0(e,r)}function PB(t,e,r){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?r&&(t[n]=e[n]):PB(t[n],e[n],r):t[n]=e[n]);return t}function gl(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _tt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Ftt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return _tt[e]}):t}var x0=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function NB(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),o=t,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?NB(s,l,r):void 0}o=o[n[i]]}return o}}var Ttt=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Qo(this,e),n=$f(this,hl(e).call(this)),x0&&Wi.call(Du(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return E0(e,Wi),ti(e,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=C0(this.data,s);return l||!u||typeof o!="string"?l:NB(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),FB(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=C0(this.data,s)||{};i?PB(l,o,a):l=Ye({},l,o),FB(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ye({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),e}(),jB={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,r,n,o))}),e}},IB={},LB=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Qo(this,e),n=$f(this,hl(e).call(this)),x0&&Wi.call(Du(n)),Btt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Du(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=ei.create("translator"),n}return E0(e,Wi),ti(e,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(Ui(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(r,n),h=v&&v.res,m=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,g=Object.prototype.toString.apply(h),w=["[object Number]","[object Function]","[object RegExp]"],E=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof h!="string"&&typeof h!="boolean"&&typeof h!="number";if(x&&h&&D&&w.indexOf(g)<0&&(typeof E!="string"||g!=="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,h,Ye({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var S=g==="[object Array]",k=S?[]:{},F=S?y:m;for(var H in h)if(Object.prototype.hasOwnProperty.call(h,H)){var G="".concat(F).concat(a).concat(H);k[H]=this.translate(G,Ye({},n,{joinArrays:!1,ns:l})),k[H]===G&&(k[H]=h[H])}h=k}}else if(x&&typeof E=="string"&&g==="[object Array]")(h=h.join(E))&&(h=this.extendTranslation(h,r,n,o));else{var j=!1,L=!1,z=n.count!==void 0&&typeof n.count!="string",K=e.hasDefaultValue(n),X=z?this.pluralResolver.getSuffix(f,n.count):"",nt=n["defaultValue".concat(X)]||n.defaultValue;!this.isValidLookup(h)&&K&&(j=!0,h=nt),this.isValidLookup(h)||(L=!0,h=s);var lt=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&L?void 0:h,ut=K&&nt!==h&&this.options.updateMissing;if(L||j||ut){if(this.logger.log(ut?"updateKey":"missingKey",f,c,s,ut?nt:h),a){var B=this.resolve(s,Ye({},n,{keySeparator:!1}));B&&B.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var A=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&N&&N[0])for(var W=0;W<N.length;W++)A.push(N[W]);else this.options.saveMissingTo==="all"?A=this.languageUtils.toResolveHierarchy(n.lng||this.language):A.push(n.lng||this.language);var $=function(q,at,vt){i.options.missingKeyHandler?i.options.missingKeyHandler(q,c,at,ut?vt:st,ut,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(q,c,at,ut?vt:st,ut,n),i.emit("missingKey",q,c,at,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&z?A.forEach(function(q){i.pluralResolver.getSuffixes(q).forEach(function(at){$([q],s+at,n["defaultValue".concat(at)]||nt)})}):$(A,s,nt))}h=this.extendTranslation(h,r,n,v,o),L&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),(L||j)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Ye({},o,{interpolation:Ye({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Ye({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var h=arguments.length,m=new Array(h),y=0;y<h;y++)m[y]=arguments[y];return a&&a[0]===m[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(m[0]," in key: ").concat(n[0])),null):u.translate.apply(u,m.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return r!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(r=jB.handle(v,r,n,this.options&&this.options.postProcessPassResolved?Ye({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!s.isValidLookup(n)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",h=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",m=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(n)||(u=y,!IB["".concat(m[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(IB["".concat(m[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(m.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach(function(g){if(!s.isValidLookup(n)){a=g;var w,E,x=d,D=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(D,d,g,y,l):(v&&(w=s.pluralResolver.getSuffix(g,l.count)),v&&h&&D.push(x+w),h&&D.push(x+="".concat(s.options.contextSeparator).concat(l.context)),v&&D.push(x+=w));E=D.pop();)s.isValidLookup(n)||(i=E,n=s.getResource(g,y,E,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),e}();function _E(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Ptt=function(){function t(e){Qo(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ei.create("languageUtils")}return ti(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var r=e.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var r=e.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=_E(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=_E(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=_E(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var r,n=this;return e?(e.forEach(function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&e.forEach(function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];var n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(n.formatLanguageCode(u))}),i}}]),t}(),Ntt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],jtt={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function Itt(){var t={};return Ntt.forEach(function(e){e.lngs.forEach(function(r){t[r]={numbers:e.nr,plurals:jtt[e.fc]}})}),t}var Ltt=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Qo(this,t),this.languageUtils=e,this.options=r,this.logger=ei.create("pluralResolver"),this.rules=Itt()}return ti(t,[{key:"addRule",value:function(e,r){this.rules[e]=r}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var r=this.getRule(e);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,r){return this.getSuffixes(e).map(function(n){return r+n})}},{key:"getSuffixes",value:function(e){var r=this,n=this.getRule(e);return n?n.numbers.map(function(o){return r.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,r){var n=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),Rtt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qo(this,t),this.logger=ei.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(r){return r},this.init(e)}return ti(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var r=e.interpolation;this.escape=r.escape!==void 0?r.escape:Ftt,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?gl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?gl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?gl(r.nestingPrefix):r.nestingPrefixEscaped||gl("$t("),this.nestingSuffix=r.nestingSuffix?gl(r.nestingSuffix):r.nestingSuffixEscaped||gl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,r,n,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(h){return h.replace(/\$/g,"$$$$")}var f=function(h){if(h.indexOf(s.formatSeparator)<0){var m=TB(r,l,h);return s.alwaysFormat?s.format(m,void 0,n,Ye({},o,r,{interpolationkey:h})):m}var y=h.split(s.formatSeparator),g=y.shift().trim(),w=y.join(s.formatSeparator).trim();return s.format(TB(r,l,g),w,n,Ye({},o,r,{interpolationkey:g}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return s.escapeValue?c(s.escape(h)):c(h)}}];return v.forEach(function(h){for(u=0;i=h.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var m=d(e,i,o);a=typeof m=="string"?m:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=_B(a));var y=h.safeValue(a);if(e=e.replace(i[0],y),p?(h.regex.lastIndex+=y.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ye({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var h=d.split(new RegExp("".concat(v,"[ ]*{"))),m="{".concat(h[1]);d=h[0],m=(m=this.interpolate(m,u)).replace(/'/g,'"');try{u=JSON.parse(m),p&&(u=Ye({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(v).concat(m)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=_B(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,Ye({},a,{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Mtt=function(t){function e(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Qo(this,e),i=$f(this,hl(e).call(this)),x0&&Wi.call(Du(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ei.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return E0(e,Wi),ti(e,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.forEach(function(p){var v="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var v=BE(c,f,Object),h=v.obj,m=v.k;h[m]=h[m]||[],h[m].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,r,n,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)})}},{key:"saveMissing",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,Ye({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),e}();function Vtt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(Ui(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),Ui(t[2])==="object"||Ui(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(n){e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function RB(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function S0(){}var ztt=function(t){function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Qo(this,e),r=$f(this,hl(e).call(this)),x0&&Wi.call(Du(r)),r.options=RB(n),r.services={},r.logger=ei,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),$f(r,Du(r));setTimeout(function(){r.init(n,o)},0)}return r}return E0(e,Wi),ti(e,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Ye({},Vtt(),this.options,RB(n)),this.format=this.options.interpolation.format,o||(o=S0),!this.options.isClone){this.modules.logger?ei.init(i(this.modules.logger),this.options):ei.init(null,this.options);var a=new Ptt(this.options);this.store=new Ttt(this.options.resources,this.options);var u=this.services;u.logger=ei,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Ltt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Rtt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Mtt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),m=1;m<v;m++)h[m-1]=arguments[m];r.emit.apply(r,[p].concat(h))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new LB(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,h=new Array(v>1?v-1:0),m=1;m<v;m++)h[m-1]=arguments[m];r.emit.apply(r,[p].concat(h))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments),r}});var f=Zf(),d=function(){var p=function(v,h){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(h),o(v,h)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S0,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=Zf();return r||(r=this.languages),n||(n=this.options.ns),o||(o=S0),this.services.backendConnector.reload(r,n,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&jB.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Zf();this.emit("languageChanging",r);var a=function(u){r||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(Ui(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=Ye({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",h=o?"".concat(o).concat(v).concat(s):s;return i.t(h,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Zf();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Zf();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),n&&n(u)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S0,i=Ye({},this.options,n,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=r[s]}),a.services=Ye({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new LB(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),D0=new ztt;function Ur(t,e){D0.addResourceBundle(t,"translation",e,!0,!0)}D0.init({lng:"zh-CN",resources:{}});var tt=D0.t.bind(D0);Ur("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Ur("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Htt=O1?{}.toString:function(){return"[object "+zh(this)+"]"};O1||Ya(Object.prototype,"toString",Htt,{unsafe:!0});var MB=Array.isArray||function(t){return Wa(t)=="Array"},VB=function(){},Utt=[],zB=Fc("Reflect","construct"),FE=/^\s*(?:class|function)\b/,Wtt=ne(FE.exec),Gtt=!FE.exec(VB),Jf=function(t){if(!Je(t))return!1;try{return zB(VB,Utt,t),!0}catch{return!1}},qtt=!zB||or(function(){var t;return Jf(Jf.call)||!Jf(Object)||!Jf(function(){t=!0})||t})?function(t){if(!Je(t))return!1;switch(zh(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Gtt||!!Wtt(FE,w1(t))}:Jf,Ktt=Tr("species"),HB=Ct.Array,Ytt=function(t,e){return new(function(r){var n;return MB(r)&&(n=r.constructor,(qtt(n)&&(n===HB||MB(n.prototype))||uo(n)&&(n=n[Ktt])===null)&&(n=void 0)),n===void 0?HB:n}(t))(e===0?0:e)},UB=ne([].push),Xtt=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=g1(s),h=US(v),m=xD(l,c),y=Rh(h),g=0,w=f||Ytt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:UB(E,d)}else switch(t){case 4:return!1;case 7:UB(E,d)}return i?-1:n||o?o:E}},$tt={forEach:Xtt(0)}.forEach,Ztt=function(t,e){var r=[][t];return!!r&&or(function(){r.call(null,e||function(){throw 1},1)})}("forEach"),TE=Ztt?[].forEach:function(t){return $tt(this,t,arguments.length>1?arguments[1]:void 0)},WB=function(t){if(t&&t.forEach!==TE)try{Vr(t,"forEach",TE)}catch{t.forEach=TE}};for(var PE in Kh)Kh[PE]&&WB(Ct[PE]&&Ct[PE].prototype);WB(jD),Ur("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Ur("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Jtt={type:"paragraph",renderElem:function(t,e,r){return bt("p",null,e)}},A0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O0(t){var e={exports:{}};return t(e,e.exports),e.exports}var Gi,k0,B0=function(t){return t&&t.Math==Math&&t},At=B0(typeof globalThis=="object"&&globalThis)||B0(typeof window=="object"&&window)||B0(typeof self=="object"&&self)||B0(typeof A0=="object"&&A0)||function(){return this}()||Function("return this")(),Ae=function(t){try{return!!t()}catch{return!0}},Gn=!Ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Qf=Function.prototype.call,Re=Qf.bind?Qf.bind(Qf):function(){return Qf.apply(Qf,arguments)},GB={}.propertyIsEnumerable,qB=Object.getOwnPropertyDescriptor,Qtt=qB&&!GB.call({1:2},1)?function(t){var e=qB(this,t);return!!e&&e.enumerable}:GB,KB={f:Qtt},NE=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},YB=Function.prototype,jE=YB.bind,IE=YB.call,tet=jE&&jE.bind(IE),mt=jE?function(t){return t&&tet(IE,t)}:function(t){return t&&function(){return IE.apply(t,arguments)}},eet=mt({}.toString),ret=mt("".slice),qi=function(t){return ret(eet(t),8,-1)},LE=At.Object,net=mt("".split),_0=Ae(function(){return!LE("z").propertyIsEnumerable(0)})?function(t){return qi(t)=="String"?net(t,""):LE(t)}:LE,oet=At.TypeError,Dn=function(t){if(t==null)throw oet("Can't call method on "+t);return t},vl=function(t){return _0(Dn(t))},Cr=function(t){return typeof t=="function"},bo=function(t){return typeof t=="object"?t!==null:Cr(t)},iet=function(t){return Cr(t)?t:void 0},td=function(t,e){return arguments.length<2?iet(At[t]):At[t]&&At[t][e]},XB=mt({}.isPrototypeOf),RE=td("navigator","userAgent")||"",$B=At.process,ZB=At.Deno,JB=$B&&$B.versions||ZB&&ZB.version,QB=JB&&JB.v8;QB&&(k0=(Gi=QB.split("."))[0]>0&&Gi[0]<4?1:+(Gi[0]+Gi[1])),!k0&&RE&&(!(Gi=RE.match(/Edge\/(\d+)/))||Gi[1]>=74)&&(Gi=RE.match(/Chrome\/(\d+)/))&&(k0=+Gi[1]);var ME=k0,VE=!!Object.getOwnPropertySymbols&&!Ae(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ME&&ME<41}),zE=VE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",aet=At.Object,HE=zE?function(t){return typeof t=="symbol"}:function(t){var e=td("Symbol");return Cr(e)&&XB(e.prototype,aet(t))},uet=At.String,t_=function(t){try{return uet(t)}catch{return"Object"}},set=At.TypeError,e_=function(t){if(Cr(t))return t;throw set(t_(t)+" is not a function")},F0=function(t,e){var r=t[e];return r==null?void 0:e_(r)},cet=At.TypeError,fet=Object.defineProperty,UE=function(t,e){try{fet(At,t,{value:e,configurable:!0,writable:!0})}catch{At[t]=e}return e},Ki=At["__core-js_shared__"]||UE("__core-js_shared__",{}),WE=O0(function(t){(t.exports=function(e,r){return Ki[e]||(Ki[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),det=At.Object,ed=function(t){return det(Dn(t))},pet=mt({}.hasOwnProperty),An=Object.hasOwn||function(t,e){return pet(ed(t),e)},het=0,get=Math.random(),vet=mt(1 .toString),r_=function(t){return"Symbol("+(t===void 0?"":t)+")_"+vet(++het+get,36)},rd=WE("wks"),Au=At.Symbol,n_=Au&&Au.for,met=zE?Au:Au&&Au.withoutSetter||r_,sn=function(t){if(!An(rd,t)||!VE&&typeof rd[t]!="string"){var e="Symbol."+t;VE&&An(Au,t)?rd[t]=Au[t]:rd[t]=zE&&n_?n_(e):met(e)}return rd[t]},yet=At.TypeError,bet=sn("toPrimitive"),GE=function(t){var e=function(r,n){if(!bo(r)||HE(r))return r;var o,i=F0(r,bet);if(i){if(o=Re(i,r,n),!bo(o)||HE(o))return o;throw yet("Can't convert object to primitive value")}return function(a,u){var s,l;if(Cr(s=a.toString)&&!bo(l=Re(s,a))||Cr(s=a.valueOf)&&!bo(l=Re(s,a)))return l;throw cet("Can't convert object to primitive value")}(r)}(t,"string");return HE(e)?e:e+""},qE=At.document,wet=bo(qE)&&bo(qE.createElement),KE=function(t){return wet?qE.createElement(t):{}},o_=!Gn&&!Ae(function(){return Object.defineProperty(KE("div"),"a",{get:function(){return 7}}).a!=7}),i_=Object.getOwnPropertyDescriptor,YE={f:Gn?i_:function(t,e){if(t=vl(t),e=GE(e),o_)try{return i_(t,e)}catch{}if(An(t,e))return NE(!Re(KB.f,t,e),t[e])}},Eet=At.String,Cet=At.TypeError,ln=function(t){if(bo(t))return t;throw Cet(Eet(t)+" is not an object")},xet=At.TypeError,a_=Object.defineProperty,ml={f:Gn?a_:function(t,e,r){if(ln(t),e=GE(e),ln(r),o_)try{return a_(t,e,r)}catch{}if("get"in r||"set"in r)throw xet("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},yl=Gn?function(t,e,r){return ml.f(t,e,NE(1,r))}:function(t,e,r){return t[e]=r,t},Det=mt(Function.toString);Cr(Ki.inspectSource)||(Ki.inspectSource=function(t){return Det(t)});var XE,T0,$E,ZE=Ki.inspectSource,u_=At.WeakMap,Aet=Cr(u_)&&/native code/.test(ZE(u_)),s_=WE("keys"),l_=function(t){return s_[t]||(s_[t]=r_(t))},JE={},c_=At.TypeError,Oet=At.WeakMap;if(Aet||Ki.state){var Ou=Ki.state||(Ki.state=new Oet),ket=mt(Ou.get),f_=mt(Ou.has),Bet=mt(Ou.set);XE=function(t,e){if(f_(Ou,t))throw new c_("Object already initialized");return e.facade=t,Bet(Ou,t,e),e},T0=function(t){return ket(Ou,t)||{}},$E=function(t){return f_(Ou,t)}}else{var bl=l_("state");JE[bl]=!0,XE=function(t,e){if(An(t,bl))throw new c_("Object already initialized");return e.facade=t,yl(t,bl,e),e},T0=function(t){return An(t,bl)?t[bl]:{}},$E=function(t){return An(t,bl)}}var QE={get:T0,enforce:function(t){return $E(t)?T0(t):XE(t,{})}},d_=Function.prototype,_et=Gn&&Object.getOwnPropertyDescriptor,t4=An(d_,"name"),P0={EXISTS:t4,PROPER:t4&&(function(){}).name==="something",CONFIGURABLE:t4&&(!Gn||Gn&&_et(d_,"name").configurable)},nd=O0(function(t){var e=P0.CONFIGURABLE,r=QE.get,n=QE.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Cr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!An(u,"name")||e&&u.name!==p)&&yl(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==At?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:yl(i,a,u)):f?i[a]=u:UE(a,u)})(Function.prototype,"toString",function(){return Cr(this)&&r(this).source||ZE(this)})}),Fet=Math.ceil,Tet=Math.floor,wl=function(t){var e=+t;return e!=e||e===0?0:(e>0?Tet:Fet)(e)},Pet=Math.max,Net=Math.min,od=function(t,e){var r=wl(t);return r<0?Pet(r+e,0):Net(r,e)},jet=Math.min,id=function(t){return t>0?jet(wl(t),9007199254740991):0},N0=function(t){return id(t.length)},p_=function(t){return function(e,r,n){var o,i=vl(e),a=N0(i),u=od(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},h_={includes:p_(!0),indexOf:p_(!1)},Iet=h_.indexOf,g_=mt([].push),v_=function(t,e){var r,n=vl(t),o=0,i=[];for(r in n)!An(JE,r)&&An(n,r)&&g_(i,r);for(;e.length>o;)An(n,r=e[o++])&&(~Iet(i,r)||g_(i,r));return i},j0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Let=j0.concat("length","prototype"),Ret={f:Object.getOwnPropertyNames||function(t){return v_(t,Let)}},m_={f:Object.getOwnPropertySymbols},Met=mt([].concat),Vet=td("Reflect","ownKeys")||function(t){var e=Ret.f(ln(t)),r=m_.f;return r?Met(e,r(t)):e},zet=function(t,e){for(var r=Vet(e),n=ml.f,o=YE.f,i=0;i<r.length;i++){var a=r[i];An(t,a)||n(t,a,o(e,a))}},Het=/#|\.prototype\./,ad=function(t,e){var r=Wet[Uet(t)];return r==qet||r!=Get&&(Cr(e)?Ae(e):!!e)},Uet=ad.normalize=function(t){return String(t).replace(Het,".").toLowerCase()},Wet=ad.data={},Get=ad.NATIVE="N",qet=ad.POLYFILL="P",Ket=ad,Yet=YE.f,tr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?At:l?At[u]||UE(u,{}):(At[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Yet(r,n))&&a.value:r[n],!Ket(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;zet(i,o)}(t.sham||o&&o.sham)&&yl(i,"sham",!0),nd(r,n,i,t)}},y_=mt(mt.bind),I0=Array.isArray||function(t){return qi(t)=="Array"},b_={};b_[sn("toStringTag")]="z";var e4=String(b_)==="[object z]",Xet=sn("toStringTag"),$et=At.Object,Zet=qi(function(){return arguments}())=="Arguments",r4=e4?qi:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=$et(t),Xet))=="string"?r:Zet?qi(e):(n=qi(e))=="Object"&&Cr(e.callee)?"Arguments":n},w_=function(){},Jet=[],E_=td("Reflect","construct"),n4=/^\s*(?:class|function)\b/,Qet=mt(n4.exec),trt=!n4.exec(w_),ud=function(t){if(!Cr(t))return!1;try{return E_(w_,Jet,t),!0}catch{return!1}},o4=!E_||Ae(function(){var t;return ud(ud.call)||!ud(Object)||!ud(function(){t=!0})||t})?function(t){if(!Cr(t))return!1;switch(r4(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return trt||!!Qet(n4,ZE(t))}:ud,ert=sn("species"),C_=At.Array,rrt=function(t,e){return new(function(r){var n;return I0(r)&&(n=r.constructor,(o4(n)&&(n===C_||I0(n.prototype))||bo(n)&&(n=n[ert])===null)&&(n=void 0)),n===void 0?C_:n}(t))(e===0?0:e)},x_=mt([].push),L0=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=ed(s),h=_0(v),m=function(x,D){return e_(x),D===void 0?x:y_?y_(x,D):function(){return x.apply(D,arguments)}}(l,c),y=N0(h),g=0,w=f||rrt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:x_(E,d)}else switch(t){case 4:return!1;case 7:x_(E,d)}return i?-1:n||o?o:E}},R0={forEach:L0(0),map:L0(1),filter:L0(2),find:L0(5)},nrt=sn("species"),i4=function(t){return ME>=51||!Ae(function(){var e=[];return(e.constructor={})[nrt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},ort=R0.filter;tr({target:"Array",proto:!0,forced:!i4("filter")},{filter:function(t){return ort(this,t,arguments.length>1?arguments[1]:void 0)}});var irt=e4?{}.toString:function(){return"[object "+r4(this)+"]"};e4||nd(Object.prototype,"toString",irt,{unsafe:!0});var M0,art=At.String,Oe=function(t){if(r4(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return art(t)},S_=function(){var t=ln(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},a4=At.RegExp,u4=Ae(function(){var t=a4("a","y");return t.lastIndex=2,t.exec("abcd")!=null});u4||Ae(function(){return!a4("a","y").sticky});var D_={BROKEN_CARET:u4||Ae(function(){var t=a4("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:u4},El=Object.keys||function(t){return v_(t,j0)},urt=Gn?Object.defineProperties:function(t,e){ln(t);for(var r,n=vl(e),o=El(e),i=o.length,a=0;i>a;)ml.f(t,r=o[a++],n[r]);return t},srt=td("document","documentElement"),A_=l_("IE_PROTO"),s4=function(){},O_=function(t){return"<script>"+t+"<\/script>"},k_=function(t){t.write(O_("")),t.close();var e=t.parentWindow.Object;return t=null,e},V0=function(){try{M0=new ActiveXObject("htmlfile")}catch{}var t,e;V0=typeof document<"u"?document.domain&&M0?k_(M0):((e=KE("iframe")).style.display="none",srt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(O_("document.F=Object")),t.close(),t.F):k_(M0);for(var r=j0.length;r--;)delete V0.prototype[j0[r]];return V0()};JE[A_]=!0;var B_,l4,__=Object.create||function(t,e){var r;return t!==null?(s4.prototype=ln(t),r=new s4,s4.prototype=null,r[A_]=t):r=V0(),e===void 0?r:urt(r,e)},lrt=At.RegExp,crt=Ae(function(){var t=lrt(".","s");return!(t.dotAll&&t.exec(`
81
+ `)&&t.flags==="s")}),frt=At.RegExp,drt=Ae(function(){var t=frt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),prt=QE.get,hrt=WE("native-string-replace",String.prototype.replace),z0=RegExp.prototype.exec,c4=z0,grt=mt("".charAt),vrt=mt("".indexOf),mrt=mt("".replace),f4=mt("".slice),d4=(l4=/b*/g,Re(z0,B_=/a/,"a"),Re(z0,l4,"a"),B_.lastIndex!==0||l4.lastIndex!==0),F_=D_.BROKEN_CARET,p4=/()??/.exec("")[1]!==void 0;(d4||p4||F_||crt||drt)&&(c4=function(t){var e,r,n,o,i,a,u,s=this,l=prt(s),c=Oe(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Re(c4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=F_&&s.sticky,v=Re(S_,s),h=s.source,m=0,y=c;if(p&&(v=mrt(v,"y",""),vrt(v,"g")===-1&&(v+="g"),y=f4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&grt(c,s.lastIndex-1)!==`
82
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),p4&&(r=new RegExp("^"+h+"$(?!\\s)",v)),d4&&(n=s.lastIndex),o=Re(z0,p?r:s,y),p?o?(o.input=f4(o.input,m),o[0]=f4(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:d4&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),p4&&o&&o.length>1&&Re(hrt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=__(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var sd=c4;tr({target:"RegExp",proto:!0,forced:/./.exec!==sd},{exec:sd});var h4=Function.prototype,T_=h4.apply,yrt=h4.bind,P_=h4.call,N_=typeof Reflect=="object"&&Reflect.apply||(yrt?P_.bind(T_):function(){return P_.apply(T_,arguments)}),brt=sn("species"),g4=RegExp.prototype,v4=function(t,e,r,n){var o=sn(t),i=!Ae(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ae(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[brt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=mt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=mt(l),h=c.exec;return h===sd||h===g4.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});nd(String.prototype,t,s[0]),nd(g4,o,s[1])}n&&yl(g4[o],"sham",!0)},wrt=mt("".charAt),j_=mt("".charCodeAt),Ert=mt("".slice),Crt=function(t){return function(e,r){var n,o,i=Oe(Dn(e)),a=wl(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=j_(i,a))<55296||n>56319||a+1===u||(o=j_(i,a+1))<56320||o>57343?t?wrt(i,a):n:t?Ert(i,a,a+2):o-56320+(n-55296<<10)+65536}},xrt=Crt(!0),m4=function(t,e,r){return e+(r?xrt(t,e).length:1)},Srt=Math.floor,y4=mt("".charAt),Drt=mt("".replace),b4=mt("".slice),Art=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ort=/\$([$&'`]|\d{1,2})/g,krt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Ort;return o!==void 0&&(o=ed(o),s=Art),Drt(i,s,function(l,c){var f;switch(y4(c,0)){case"$":return"$";case"&":return t;case"`":return b4(e,0,r);case"'":return b4(e,a);case"<":f=o[b4(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Srt(d/10);return p===0?l:p<=u?n[p-1]===void 0?y4(c,1):n[p-1]+y4(c,1):l}f=n[d-1]}return f===void 0?"":f})},Brt=At.TypeError,ld=function(t,e){var r=t.exec;if(Cr(r)){var n=Re(r,t,e);return n!==null&&ln(n),n}if(qi(t)==="RegExp")return Re(sd,t,e);throw Brt("RegExp#exec called on incompatible receiver")},w4=sn("replace"),_rt=Math.max,Frt=Math.min,Trt=mt([].concat),E4=mt([].push),I_=mt("".indexOf),L_=mt("".slice),Prt="a".replace(/./,"$0")==="$0",R_=!!/./[w4]&&/./[w4]("a","$0")==="";v4("replace",function(t,e,r){var n=R_?"$":"$0";return[function(o,i){var a=Dn(this),u=o==null?void 0:F0(o,w4);return u?Re(u,o,a,i):Re(e,Oe(a),o,i)},function(o,i){var a=ln(this),u=Oe(o);if(typeof i=="string"&&I_(i,n)===-1&&I_(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Cr(i);l||(i=Oe(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=ld(a,u);if(p===null||(E4(d,p),!c))break;Oe(p[0])===""&&(a.lastIndex=m4(u,id(a.lastIndex),f))}for(var v,h="",m=0,y=0;y<d.length;y++){for(var g=Oe((p=d[y])[0]),w=_rt(Frt(wl(p.index),u.length),0),E=[],x=1;x<p.length;x++)E4(E,(v=p[x])===void 0?v:String(v));var D=p.groups;if(l){var S=Trt([g],E,w,u);D!==void 0&&E4(S,D);var k=Oe(N_(i,void 0,S))}else k=krt(g,u,w,E,D,i);w>=m&&(h+=L_(u,m,w)+k,m=w+g.length)}return h+L_(u,m)}]},!!Ae(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Prt||R_);var C4=sn("unscopables"),x4=Array.prototype;x4[C4]==null&&ml.f(x4,C4,{configurable:!0,value:__(null)});var M_=function(t){x4[C4][t]=!0},Nrt=R0.find,V_=!0;"find"in[]&&Array(1).find(function(){V_=!1}),tr({target:"Array",proto:!0,forced:V_},{find:function(t){return Nrt(this,t,arguments.length>1?arguments[1]:void 0)}}),M_("find");var jrt=sn("match"),z_=function(t){var e;return bo(t)&&((e=t[jrt])!==void 0?!!e:qi(t)=="RegExp")},Irt=At.TypeError,Lrt=sn("species"),H_=function(t,e,r){var n=GE(e);n in t?ml.f(t,n,NE(0,r)):t[n]=r},Rrt=At.Array,Mrt=Math.max,U_=function(t,e,r){for(var n=N0(t),o=od(e,n),i=od(r===void 0?n:r,n),a=Rrt(Mrt(i-o,0)),u=0;o<i;o++,u++)H_(a,u,t[o]);return a.length=u,a},Cl=D_.UNSUPPORTED_Y,Vrt=Math.min,W_=[].push,zrt=mt(/./.exec),xl=mt(W_),cd=mt("".slice);v4("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Oe(Dn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!z_(o))return Re(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Re(sd,v,a))&&!((l=v.lastIndex)>p&&(xl(f,cd(a,p,s.index)),s.length>1&&s.index<a.length&&N_(W_,f,U_(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&zrt(v,"")||xl(f,""):xl(f,cd(a,p)),f.length>u?U_(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Re(e,this,o,i)}:e,[function(o,i){var a=Dn(this),u=o==null?void 0:F0(o,t);return u?Re(u,o,a,i):Re(n,Oe(a),o,i)},function(o,i){var a=ln(this),u=Oe(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(E,x){var D,S=ln(E).constructor;return S===void 0||(D=ln(S)[Lrt])==null?x:function(k){if(o4(k))return k;throw Irt(t_(k)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Cl?"g":"y"),d=new l(Cl?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return ld(d,u)===null?[u]:[];for(var v=0,h=0,m=[];h<u.length;){d.lastIndex=Cl?0:h;var y,g=ld(d,Cl?cd(u,h):u);if(g===null||(y=Vrt(id(d.lastIndex+(Cl?h:0)),u.length))===v)h=m4(u,h,c);else{if(xl(m,cd(u,v,h)),m.length===p)return m;for(var w=1;w<=g.length-1;w++)if(xl(m,g[w]),m.length===p)return m;h=v=y}}return xl(m,cd(u,v)),m}]},!!Ae(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Cl);var S4=`
83
+ \v\f\r                 \u2028\u2029\uFEFF`,G_=mt("".replace),H0="["+S4+"]",Hrt=RegExp("^"+H0+H0+"*"),Urt=RegExp(H0+H0+"*$"),Wrt=function(t){return function(e){var r=Oe(Dn(e));return 1&t&&(r=G_(r,Hrt,"")),2&t&&(r=G_(r,Urt,"")),r}},Grt={trim:Wrt(3)},qrt=P0.PROPER,Krt=Grt.trim;function D4(t){return _("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function Sl(t){return t.length===0?"":t[0].outerHTML}function Dl(t){return t.length?t[0].tagName.toLowerCase():""}function qn(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===e&&(r=u[1].trim())}}return r}tr({target:"String",proto:!0,forced:Ae(function(){return!!S4.trim()||"​…᠎".trim()!=="​…᠎"||qrt&&S4.trim.name!=="trim"})},{trim:function(){return Krt(this)}}),tr({global:!0},{globalThis:At}),gg&&(_.fn.css=gg),mn&&(_.fn.append=mn),c7&&(_.fn.prepend=c7),_s&&(_.fn.addClass=_s),Fs&&(_.fn.removeClass=Fs),Ts&&(_.fn.hasClass=Ts),co&&(_.fn.on=co),a7&&(_.fn.off=a7),Fi&&(_.fn.focus=Fi),vn&&(_.fn.attr=vn),fg&&(_.fn.removeAttr=fg),Ns&&(_.fn.hide=Ns),hg&&(_.fn.show=hg),yg&&(_.fn.parents=yg),Ps&&(_.fn.dataset=Ps),lo&&(_.fn.val=lo),mg&&(_.fn.text=mg),_i&&(_.fn.html=_i),Ls&&(_.fn.children=Ls),Rs&&(_.fn.remove=Rs),Is&&(_.fn.find=Is),dg&&(_.fn.width=dg),pg&&(_.fn.height=pg),s7&&(_.fn.filter=s7),Ms&&(_.fn.empty=Ms);var Yrt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},A4=function(t,e){return A4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},A4(t,e);/*! *****************************************************************************
84
+ Copyright (c) Microsoft Corporation.
85
+
86
+ Permission to use, copy, modify, and/or distribute this software for any
87
+ purpose with or without fee is hereby granted.
88
+
89
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
90
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
91
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
92
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
93
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
94
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
95
+ PERFORMANCE OF THIS SOFTWARE.
96
+ ***************************************************************************** */};function ye(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}A4(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Yi=function(){return Yi=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yi.apply(this,arguments)};function Xi(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function $i(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function q_(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qt(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function K_(t){var e=qt(C.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var r=e[0];if(!ft.isElement(r)||r.type==="paragraph"||Q.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!it.isText(o[0])&&(R.setNodes(t,{type:"paragraph"}),!0)}var Xrt={renderElems:[Jtt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Yrt],editorPlugin:function(t){var e=t.deleteBackward,r=t.deleteForward;t.insertText,t.insertBreak;var n=t;return n.deleteBackward=function(o){K_(n)||e(o)},n.deleteForward=function(o){K_(n)||r(o)},n}},$rt=/"/g,Zrt=mt("".replace),fd=function(t,e,r,n){var o=Oe(Dn(t)),i="<"+e;return r!==""&&(i+=" "+r+'="'+Zrt(Oe(n),$rt,"&quot;")+'"'),i+">"+o+"</"+e+">"},dd=function(t){return Ae(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function O4(t,e){var r=e,n=t,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function ku(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tr({target:"String",proto:!0,forced:dd("bold")},{bold:function(){return fd(this,"b","","")}}),tr({target:"String",proto:!0,forced:dd("italics")},{italics:function(){return fd(this,"i","","")}}),tr({target:"String",proto:!0,forced:dd("sub")},{sub:function(){return fd(this,"sub","","")}}),tr({target:"String",proto:!0,forced:dd("sup")},{sup:function(){return fd(this,"sup","","")}});var Y_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},k4=KE("span").classList,X_=k4&&k4.constructor&&k4.constructor.prototype,Jrt=X_===Object.prototype?void 0:X_,$_=function(t,e){var r=[][t];return!!r&&Ae(function(){r.call(null,e||function(){throw 1},1)})},Qrt=R0.forEach,B4=$_("forEach")?[].forEach:function(t){return Qrt(this,t,arguments.length>1?arguments[1]:void 0)},Z_=function(t){if(t&&t.forEach!==B4)try{yl(t,"forEach",B4)}catch{t.forEach=B4}};for(var _4 in Y_)Y_[_4]&&Z_(At[_4]&&At[_4].prototype);function J_(t,e){return t.selection==null||!!qt(C.nodes(t,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(t,r)},universal:!0}),1)[0]}function tnt(t,e){Object.keys(e).forEach(function(r){r!=="text"&&C.removeMark(t,r)})}Z_(Jrt),tr({target:"Object",stat:!0,forced:Ae(function(){El(1)})},{keys:function(t){return El(ed(t))}});var Bu=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n?n[r]:!!qt(C.nodes(e,{match:function(o){return o[r]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return J_(e,this.mark)},t.prototype.exec=function(e,r){var n=this.mark,o=this.marksNeedToRemove;r?e.removeMark(n):(e.addMark(n,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),ent='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',rnt='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',nnt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',ont='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',int='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',Q_='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',tF='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',ant='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',unt='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',snt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',lnt='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',cnt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',fnt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',dnt='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',pnt='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',hnt='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',gnt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',vnt='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',mnt='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',ynt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="bold",r.title=tt("textStyle.bold"),r.iconSvg=ent,r.hotkey="mod+b",r}return ye(e,t),e}(Bu),bnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="code",r.title=tt("textStyle.code"),r.iconSvg=int,r.hotkey="mod+e",r}return ye(e,t),e}(Bu),wnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="italic",r.title=tt("textStyle.italic"),r.iconSvg=nnt,r.hotkey="mod+i",r}return ye(e,t),e}(Bu),Ent=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="through",r.title=tt("textStyle.through"),r.iconSvg=ont,r.hotkey="mod+shift+x",r}return ye(e,t),e}(Bu),Cnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="underline",r.title=tt("textStyle.underline"),r.iconSvg=rnt,r.hotkey="mod+u",r}return ye(e,t),e}(Bu),xnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=tt("textStyle.sub"),r.iconSvg=mnt,r.hotkey="",r}return ye(e,t),e}(Bu),Snt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=tt("textStyle.sup"),r.iconSvg=vnt,r.hotkey="",r}return ye(e,t),e}(Bu),Dnt=function(){function t(){this.title=tt("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return J_(e)},t.prototype.exec=function(e,r){var n,o,i=C.nodes(e,{match:function(s){return it.isText(s)},universal:!0});try{for(var a=q_(i),u=a.next();!u.done;u=a.next())tnt(e,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t}(),Ant={renderStyle:function(t,e){var r=t,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=e;return n&&(c=bt("strong",null,c)),a&&(c=bt("code",null,c)),o&&(c=bt("em",null,c)),i&&(c=bt("u",null,c)),u&&(c=bt("s",null,c)),s&&(c=bt("sub",null,c)),l&&(c=bt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new ynt}},{key:"underline",factory:function(){return new Cnt}},{key:"italic",factory:function(){return new wnt}},{key:"through",factory:function(){return new Ent}},{key:"code",factory:function(){return new bnt}},{key:"sub",factory:function(){return new xnt}},{key:"sup",factory:function(){return new Snt}},{key:"clearStyle",factory:function(){return new Dnt}}],styleToHtml:function(t,e){if(!it.isText(t))return e;if(D4(e))return O4(t,e);var r=_(e);if(Dl(r)==="br")return O4(t,"<br>");var n=r.html();return n=O4(t,n),r.html(n),Sl(r)},parseStyleHtml:function(t,e,r){var n=_(t);if(!it.isText(e))return e;var o=e;return ku(n,"b,strong")&&(o.bold=!0),ku(n,"i,em")&&(o.italic=!0),ku(n,"u")&&(o.underline=!0),ku(n,"s,strike")&&(o.through=!0),ku(n,"sub")&&(o.sub=!0),ku(n,"sup")&&(o.sup=!0),ku(n,"code")&&(o.code=!0),o}};function pd(t){return function(e,r,n){return bt("h"+t,null,r)}}var Ont={type:"header1",renderElem:pd(1)},knt={type:"header2",renderElem:pd(2)},Bnt={type:"header3",renderElem:pd(3)},_nt={type:"header4",renderElem:pd(4)},Fnt={type:"header5",renderElem:pd(5)},Tnt=P0.PROPER,F4=RegExp.prototype,eF=F4.toString,Pnt=mt(S_),Nnt=Ae(function(){return eF.call({source:"a",flags:"b"})!="/a/b"}),jnt=Tnt&&eF.name!="toString";(Nnt||jnt)&&nd(RegExp.prototype,"toString",function(){var t=ln(this),e=Oe(t.source),r=t.flags;return"/"+e+"/"+Oe(r===void 0&&XB(F4,t)&&!("flags"in F4)?Pnt(t):r)},{unsafe:!0});var T4,Int=At.TypeError,rF=function(t){if(z_(t))throw Int("The method doesn't accept regular expressions");return t},Lnt=sn("match"),nF=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Lnt]=!1,"/./"[t](e)}catch{}}return!1},Rnt=YE.f,oF=mt("".startsWith),Mnt=mt("".slice),Vnt=Math.min,iF=nF("startsWith");function aF(t){var e=qt(C.nodes(t,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1),r=e[0];if(r==null)return"paragraph";var n=qt(r,1)[0];return O.getNodeType(n)}function uF(t){return t.selection==null||!qt(C.nodes(t,{match:function(e){var r=O.getNodeType(e);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function sF(t,e){e&&R.setNodes(t,{type:e})}tr({target:"String",proto:!0,forced:!(!iF&&(T4=Rnt(String.prototype,"startsWith"),T4&&!T4.writable)||iF)},{startsWith:function(t){var e=Oe(Dn(this));rF(t);var r=id(Vnt(arguments.length>1?arguments[1]:void 0,e.length)),n=Oe(t);return oF?oF(e,n,r):Mnt(e,r,r+n.length)===n}});var znt=function(){function t(){this.title=tt("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var r=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:tt("header.text")}],n=this.getValue(e).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return aF(e)},t.prototype.isDisabled=function(e){return uF(e)},t.prototype.exec=function(e,r){sF(e,r.toString())},t}(),hd=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return aF(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return uF(e)},t.prototype.exec=function(e,r){var n=this.type;sF(e,r===n?"paragraph":n)},t}(),Hnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return ye(e,t),e}(hd),Unt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return ye(e,t),e}(hd),Wnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return ye(e,t),e}(hd),Gnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return ye(e,t),e}(hd),qnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return ye(e,t),e}(hd),Knt={key:"headerSelect",factory:function(){return new znt}},Ynt={key:"header1",factory:function(){return new Hnt}},Xnt={key:"header2",factory:function(){return new Unt}},$nt={key:"header3",factory:function(){return new Wnt}},Znt={key:"header4",factory:function(){return new Gnt}},Jnt={key:"header5",factory:function(){return new qnt}};function gd(t){return function(e,r){return"<h"+t+">"+r+"</h"+t+">"}}function vd(t){return function(e,r,n){var o=_(e);return(r=r.filter(function(i){return!!it.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:r}}}var Qnt={renderElems:[Ont,knt,Bnt,_nt,Fnt],elemsToHtml:[{type:"header1",elemToHtml:gd(1)},{type:"header2",elemToHtml:gd(2)},{type:"header3",elemToHtml:gd(3)},{type:"header4",elemToHtml:gd(4)},{type:"header5",elemToHtml:gd(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:vd(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:vd(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:vd(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:vd(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:vd(5)}],menus:[Knt,Ynt,Xnt,$nt,Znt,Jnt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var r=t;return r.insertBreak=function(){var n=qt(C.nodes(r,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&O.isSelectionAtLineEnd(t,n[1])?R.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},r}},Al=Object.assign,lF=Object.defineProperty,tot=mt([].concat),cF=!Al||Ae(function(){if(Gn&&Al({b:1},Al(lF({},"a",{enumerable:!0,get:function(){lF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Al({},t)[r]!=7||El(Al({},e)).join("")!=n})?function(t,e){for(var r=ed(t),n=arguments.length,o=1,i=m_.f,a=KB.f;n>o;)for(var u,s=_0(arguments[o++]),l=i?tot(El(s),i(s)):El(s),c=l.length,f=0;c>f;)u=l[f++],Gn&&!Re(a,s,u)||(r[u]=s[u]);return r}:Al;function _u(t,e){t.data==null&&(t.data={});var r=t.data;r.style==null&&(r.style={}),Object.assign(r.style,e)}tr({target:"Object",stat:!0,forced:Object.assign!==cF},{assign:cF});var eot={selector:"font",preParseHtml:function(t){var e=_(t);if(Dl(e)!=="font")return t;var r=e.attr("color")||"";return r&&(e.removeAttr("color"),e.css("color",r)),e[0]}},fF=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n&&n[r]?n[r]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!qt(C.nodes(e,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var r=this.mark;if(this.$content==null){var n=_('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=_(c).attr("data-value");f==="0"?C.removeMark(e,r):C.addMark(e,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(r).colors;(a===void 0?[]:a).forEach(function(l){var c=_('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=_('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";r==="color"&&(u=tt("color.default")),r==="bgColor"&&(u=tt("color.clear"));var s=_(`
97
+ <li data-value="0" class="clear">
98
+ <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
99
+ `+u+`
100
+ </li>
101
+ `);return o.prepend(s),o[0]},t}(),rot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("color.color"),r.iconSvg=ant,r.mark="color",r}return ye(e,t),e}(fF),not=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("color.bgColor"),r.iconSvg=unt,r.mark="bgColor",r}return ye(e,t),e}(fF),dF=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],oot={renderStyle:function(t,e){var r=t,n=r.color,o=r.bgColor,i=e;return n&&_u(i,{color:n}),o&&_u(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var r,n=t,o=n.color,i=n.bgColor;return o||i?((D4(e)||Dl(r=_(e))!=="span")&&(r=_("<span>"+e+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),Sl(r)):e},preParseHtml:[eot],parseStyleHtml:function(t,e,r){var n=_(t);if(!it.isText(e))return e;var o=e,i=qn(n,"color");i&&(o.color=i);var a=qn(n,"background-color");return a||(a=qn(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new rot},config:{colors:dF}},{key:"bgColor",factory:function(){return new not},config:{colors:dF}}]},iot=/^(?:\w+:)?\/\/(\S+)$/,aot=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,uot=/^[^\s\.]+\.\S{2,}$/,sot=h_.includes;function U0(t){return t===void 0&&(t="r"),t+"-"+v7()}function P4(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function pF(t,e,r,n){return Xi(this,void 0,void 0,function(){var o,i;return $i(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function hF(t,e,r){return Xi(this,void 0,void 0,function(){var n;return $i(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function N4(t){return t.selection==null||!!O.getSelectedElems(t).some(function(e){var r=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(r)||void 0})}function j4(t,e){return{type:"link",url:P4(t),children:e?[{text:e}]:[]}}function gF(t,e,r){return Xi(this,void 0,void 0,function(){var n,o,i;return $i(this,function(a){switch(a.label){case 0:return r?(e||(e=r),t.restoreSelection(),N4(t)?[2]:[4,pF("insertLink",t,e,r)]):[2];case 1:return a.sent()?[4,hF("insertLink",t,r)]:[2];case 2:return n=a.sent(),(o=t.selection)==null||(V.isCollapsed(o)?(t.insertText(" "),i=j4(n,e),R.insertNodes(t,i),t.insertFragment([{text:" "}])):C.string(t,o)!==e?(t.deleteFragment(),i=j4(n,e),R.insertNodes(t,i)):(i=j4(n),R.wrapNodes(t,i,{split:!0}),R.collapse(t,{edge:"end"}))),[2]}})})}tr({target:"Array",proto:!0},{includes:function(t){return sot(this,t,arguments.length>1?arguments[1]:void 0)}}),M_("includes");var lot={type:"link",renderElem:function(t,e,r){var n=t,o=n.url,i=n.target;return bt("a",{href:o,target:i===void 0?"_blank":i},e)}},cot={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:e}}};function I4(){return U0("w-e-insert-link")}var fot=function(){function t(){this.title=tt("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=I4(),this.urlInputId=I4(),this.buttonId=I4()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return N4(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=e.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=qt(an(tt("link.text"),o),2),s=u[0],l=_(u[1]),c=qt(an(tt("link.url"),i),2),f=c[0],d=_(c[1]),p=qt(pl(a,tt("common.ok")),1)[0];if(this.$content==null){var v=_("<div></div>");v.on("click","#"+a,function(y){y.preventDefault();var g=v.find("#"+o).val(),w=v.find("#"+i).val();gF(e,g,w),e.hidePanelOrModal()}),this.$content=v}var h=this.$content;if(h.empty(),h.append(s),h.append(f),h.append(p),r==null||V.isCollapsed(r))l.val("");else{var m=C.string(e,r);l.val(m)}return d.val(""),setTimeout(function(){l.focus()}),h[0]},t}();function vF(){return U0("w-e-update-link")}var dot=function(){function t(){this.title=tt("link.edit"),this.iconSvg=Q_,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=vF(),this.buttonId=vF()}return t.prototype.getSelectedLinkElem=function(e){var r=O.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return O.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var r=this.urlInputId,n=this.buttonId,o=qt(an(tt("link.url"),r),2),i=o[0],a=_(o[1]),u=qt(pl(n,tt("common.ok")),1)[0];if(this.$content==null){var s=_("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var d=O.getSelectedNodeByType(e,"link"),p=d?Q.string(d):"",v=s.find("#"+r).val();(function(h,m,y){Xi(this,void 0,void 0,function(){var g,w;return $i(this,function(E){switch(E.label){case 0:return y?[4,pF("editLink",h,m,y)]:[2];case 1:return E.sent()?[4,hF("editLink",h,y)]:[2];case 2:return g=E.sent(),w={url:P4(g)},R.setNodes(h,w,{match:function(x){return O.checkNodeType(x,"link")}}),[2]}})})})(e,p,v),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),pot=function(){function t(){this.title=tt("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||R.unwrapNodes(e,{match:function(n){return O.checkNodeType(n,"link")}})},t}(),hot=function(){function t(){this.title=tt("link.view"),this.iconSvg=tF,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var r=O.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},t}(),mF={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},got={renderElems:[lot],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var r=t,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[cot],menus:[{key:"insertLink",factory:function(){return new fot},config:mF},{key:"editLink",factory:function(){return new dot},config:mF},{key:"unLink",factory:function(){return new pot}},{key:"viewLink",factory:function(){return new hot}}],editorPlugin:function(t){var e=t.isInline,r=t.insertData,n=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(iot);if(!c)return!1;var f=c[1];return!(!f||!aot.test(f)&&!uot.test(f))}(a)){if(!N4(o)){var u=o.selection;if(u!=null){var s=C.string(o,u);gF(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=qt(i,2),u=a[0],s=a[1];return O.getNodeType(u)!=="link"?n([u,s]):Q.string(u)===""?R.removeNodes(o,{at:s}):n([u,s])},o}},vot=mt(1 .valueOf),mot=At.RangeError,yot=At.RangeError,yF=At.String,bF=Math.floor,L4=mt(function(t){var e=Oe(Dn(this)),r="",n=wl(t);if(n<0||n==1/0)throw mot("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r}),wF=mt("".slice),md=mt(1 .toFixed),Ol=function(t,e,r){return e===0?r:e%2==1?Ol(t,e-1,r*t):Ol(t*t,e/2,r)},kl=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=bF(o/1e7)},R4=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=bF(n/e),n=n%e*1e7},EF=function(t){for(var e=6,r="";--e>=0;)if(r!==""||e===0||t[e]!==0){var n=yF(t[e]);r=r===""?n:r+L4("0",7-n.length)+n}return r};function CF(t,e){return"w-e-image-container-"+O.findKey(t,e).id}tr({target:"Number",proto:!0,forced:Ae(function(){return md(8e-5,3)!=="0.000"||md(.9,0)!=="1"||md(1.255,2)!=="1.25"||md(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ae(function(){md({})})},{toFixed:function(t){var e,r,n,o,i=vot(this),a=wl(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw yot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return yF(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(e=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*Ol(2,69,1))-69)<0?i*Ol(2,-e,1):i/Ol(2,e,1),r*=4503599627370496,(e=52-e)>0){for(kl(u,0,r),n=a;n>=7;)kl(u,1e7,0),n-=7;for(kl(u,Ol(10,n,1),0),n=e-1;n>=23;)R4(u,1<<23),n-=23;R4(u,1<<n),kl(u,1,1),R4(u,2),l=EF(u)}else kl(u,0,r),kl(u,1<<-e,0),l=EF(u)+L4("0",a);return a>0?s+((o=l.length)<=a?"0."+L4("0",a-o)+l:wF(l,0,o-a)+"."+wF(l,o-a)):s+l}});var bot={type:"image",renderElem:function(t,e,r){var n=t,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,h=O.isNodeSelected(r,t),m={};d&&(m.width="100%"),v&&(m.height="100%");var y=bt("img",{style:m,src:o,alt:a,"data-href":s}),g=r.isDisabled();return h&&!g?function(w,E,x,D){var S=_("body"),k=CF(w,E),F=D.width,H=D.height,G=0,j=0,L=0,z=!1,K=null;function X(ut){K=function(){var N=_("#"+k);if(N.length===0)throw new Error("Cannot find image container elem");return N}(),G=ut;var B=K.find("img");if(B.length===0)throw new Error("Cannot find image elem");j=B.width(),L=B.height(),S.on("mousemove",nt),S.on("mouseup",lt);var A=O.getHoverbar(w);A&&A.hideAndClean()}var nt=ou(function(ut){ut.preventDefault();var B=ut.clientX,A=j+(z?G-B:B-G),N=L*(A/j);K!=null&&(A<=15||N<=15||(K.css("width",A+"px"),K.css("height",N+"px")))},100);function lt(ut){if(S.off("mousemove",nt),K!=null){var B=K.width().toFixed(2),A=K.height().toFixed(2),N={style:Yi(Yi({},E.style),{width:B+"px",height:A+"px"})};R.setNodes(w,N,{at:O.findPath(w,E)}),S.off("mouseup",lt)}}var st={};return F&&(st.width=F),H&&(st.height=H),bt("div",{id:k,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ut){var B=_(ut.target);B.hasClass("w-e-image-dragger")&&(ut.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(z=!0),X(ut.clientX))}}},x,bt("div",{className:"w-e-image-dragger left-top"}),bt("div",{className:"w-e-image-dragger right-top"}),bt("div",{className:"w-e-image-dragger left-bottom"}),bt("div",{className:"w-e-image-dragger right-bottom"}))}(r,t,y,{width:d,height:v}):function(w,E,x,D){var S=D.width,k=D.height,F={};return S&&(F.width=S),k&&(F.height=k),bt("div",{id:CF(w,E),style:F,className:"w-e-image-container"},x)}(r,t,y,{width:d,height:v})}},wot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:qn(n,"width"),height:qn(n,"height")},children:[{text:""}]}}};function xF(t,e,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),Xi(this,void 0,void 0,function(){var i,a;return $i(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function SF(t,e,r){return Xi(this,void 0,void 0,function(){var n;return $i(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function Fu(t,e,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),Xi(this,void 0,void 0,function(){var o,i,a;return $i(this,function(u){switch(u.label){case 0:return[4,xF("insertImage",t,e,r,n)];case 1:return u.sent()?[4,SF("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:P4(o),href:n,alt:r,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),O.getSelectedNodeByType(t,"image")&&t.move(1),W0(t)||(R.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function W0(t){var e=t.selection;return e==null||!V.isCollapsed(e)||!!qt(C.nodes(t,{match:function(r){var n=O.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!C.isVoid(t,r)},universal:!0}),1)[0]}function G0(){return U0("w-e-insert-image")}var Eot=function(){function t(){this.title=tt("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=G0(),this.altInputId=G0(),this.hrefInputId=G0(),this.buttonId=G0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return W0(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=qt(an(tt("image.src"),o),2),l=s[0],c=_(s[1]),f=qt(an(tt("image.desc"),i),2),d=f[0],p=_(f[1]),v=qt(an(tt("image.link"),a),2),h=v[0],m=_(v[1]),y=qt(pl(u,tt("common.ok")),1)[0];if(this.$content==null){var g=_("<div></div>");g.on("click","#"+u,function(E){E.preventDefault();var x=g.find("#"+o).val().trim(),D=g.find("#"+i).val().trim(),S=g.find("#"+a).val().trim();r.insertImage(e,x,D,S),e.hidePanelOrModal()}),this.$content=g}var w=this.$content;return w.empty(),w.append(l),w.append(d),w.append(h),w.append(y),c.val(""),p.val(""),m.val(""),setTimeout(function(){c.focus()}),w[0]},t.prototype.insertImage=function(e,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(e.restoreSelection(),this.isDisabled(e)||Fu(e,r,n,o))},t}(),Cot=function(){function t(){this.title=tt("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||R.removeNodes(e,{match:function(n){return O.checkNodeType(n,"image")}})},t}();function q0(){return U0("w-e-edit-image")}var xot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=Q_,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=q0(),this.altInputId=q0(),this.hrefInputId=q0(),this.buttonId=q0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||O.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=qt(an(tt("image.src"),o),2),c=l[0],f=_(l[1]),d=qt(an(tt("image.desc"),i),2),p=d[0],v=_(d[1]),h=qt(an(tt("image.link"),a),2),m=h[0],y=_(h[1]),g=qt(pl(u,tt("common.ok")),1)[0];if(this.$content==null){var w=_("<div></div>");w.on("click","#"+u,function(G){G.preventDefault();var j=w.find("#"+o).val(),L=w.find("#"+i).val(),z=w.find("#"+a).val();r.updateImage(e,j,L,z),e.hidePanelOrModal()}),this.$content=w}var E=this.$content;E.empty(),E.append(c),E.append(p),E.append(m),E.append(g);var x=s,D=x.src,S=x.alt,k=S===void 0?"":S,F=x.href,H=F===void 0?"":F;return f.val(D),v.val(k),y.val(H),setTimeout(function(){f.focus()}),E[0]},t.prototype.updateImage=function(e,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Xi(this,void 0,void 0,function(){var f,d,p,v,h,m;return $i(this,function(y){switch(y.label){case 0:return[4,xF("editImage",a,u,s,l)];case 1:return y.sent()?[4,SF("editImage",a,u)]:[2];case 2:return f=y.sent(),(d=O.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:Yi(Yi({},p===void 0?{}:p),c)},R.setNodes(a,v,{match:function(g){return O.checkNodeType(g,"image")}}),h=O.getSelectedNodeByType(a,"image"),(m=a.getMenuConfig("editImage").onUpdatedImage)&&m(h)),[2]}})})}(e,r,n,o,i))},t}(),Sot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=tF,this.tag="button"}return t.prototype.getValue=function(e){var r=O.getSelectedNodeByType(e,"image");return r&&r.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},t}(),M4=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return O.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var o=O.getHoverbar(e);o&&o.hideAndClean();var i=n.style,a={style:Yi(Yi({},i===void 0?{}:i),{width:this.value,height:""})};R.setNodes(e,a,{match:function(u){return O.checkNodeType(u,"image")}})}}},t}(),Dot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return ye(e,t),e}(M4),Aot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return ye(e,t),e}(M4),Oot=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return ye(e,t),e}(M4),DF={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,r){return!0},parseImageSrc:function(t){return t}},kot={renderElems:[bot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var r=t,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[wot],menus:[{key:"insertImage",factory:function(){return new Eot},config:DF},{key:"deleteImage",factory:function(){return new Cot}},{key:"editImage",factory:function(){return new xot},config:DF},{key:"viewImageLink",factory:function(){return new Sot}},{key:"imageWidth30",factory:function(){return new Dot}},{key:"imageWidth50",factory:function(){return new Aot}},{key:"imageWidth100",factory:function(){return new Oot}}],editorPlugin:function(t){var e=t.isInline,r=t.isVoid;t.insertNode;var n=t;return n.isInline=function(o){return o.type==="image"||e(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},Bot={type:"todo",renderElem:function(t,e,r){var n=!1;r.isDisabled()&&(n=!0);var o=bt("div",{style:{margin:"5px 0"}},bt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},bt("input",{type:"checkbox",checked:t.checked,disabled:n,on:{change:function(i){var a=O.findPath(r,t),u={checked:i.target.checked};R.setNodes(r,u,{at:a})}}})),bt("span",null,e));return o}},_ot=function(){function t(){this.title=tt("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},t.prototype.exec=function(e,r){var n=this.isActive(e);R.setNodes(e,{type:n?"paragraph":"todo"})},t}(),Fot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var n=_(t);(e=e.filter(function(i){return!!it.isText(i)||!!r.isInline(i)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Tot={renderElems:[Bot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=_(t).find("li"),r=_('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return r.append(n),e.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+e[0].innerHTML,r[0]}}],parseElemsHtml:[Fot],menus:[{key:"todo",factory:function(){return new _ot}}],editorPlugin:function(t){var e=t.deleteBackward,r=t;return r.deleteBackward=function(n){var o=t.selection;if(o&&V.isCollapsed(o)){var i=O.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void R.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(n)},r}},Pot={type:"blockquote",renderElem:function(t,e,r){return bt("blockquote",null,e)}},Not={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return!!it.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},jot=function(){function t(){this.title=tt("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!O.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!qt(C.nodes(e,{match:function(r){var n=O.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";R.setNodes(e,{type:n},{mode:"highest"})}},t}(),Iot={key:"blockquote",factory:function(){return new jot}},Lot=mt([].slice),Rot=i4("slice"),Mot=sn("species"),V4=At.Array,Vot=Math.max;tr({target:"Array",proto:!0,forced:!Rot},{slice:function(t,e){var r,n,o,i=vl(this),a=N0(i),u=od(t,a),s=od(e===void 0?a:e,a);if(I0(i)&&(r=i.constructor,(o4(r)&&(r===V4||I0(r.prototype))||bo(r)&&(r=r[Mot])===null)&&(r=void 0),r===V4||r===void 0))return Lot(i,u,s);for(n=new(r===void 0?V4:r)(Vot(s-u,0)),o=0;u<s;u++,o++)u in i&&H_(n,o,i[u]);return n.length=o,n}});var zot={renderElems:[Pot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Not],menus:[Iot],editorPlugin:function(t){var e=t.insertBreak,r=t.insertText,n=t;return n.insertBreak=function(){var o=n.selection;if(o==null)return e();var i=qt(C.nodes(t,{match:function(c){return O.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=O.findPath(t,a),s=C.end(t,u);if(_t.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
102
+ `)return t.deleteBackward("character"),void R.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
103
+ `)},n}},Hot=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!qt(C.nodes(e,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var r=_('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=_(a).text();e.insertText(u)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=_("<li>"+i+"</li>");n.append(a)}),n[0]},t}(),Uot={menus:[{key:"emotion",factory:function(){return new Hot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Wot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Got={selector:"font",preParseHtml:function(t){var e=_(t);if(Dl(e)!=="font")return t;var r=e.attr("size")||"";r&&(e.removeAttr("size"),e.css("font-size",Wot[r]));var n=e.attr("face")||"";return n&&(e.removeAttr("face"),e.css("font-family",n)),e[0]}},qot=mt("".indexOf);tr({target:"String",proto:!0,forced:!nF("includes")},{includes:function(t){return!!~qot(Oe(Dn(this)),Oe(rF(t)),arguments.length>1?arguments[1]:void 0)}});var Zi,K0,Y0=function(t){return t&&t.Math==Math&&t},Ft=Y0(typeof globalThis=="object"&&globalThis)||Y0(typeof window=="object"&&window)||Y0(typeof self=="object"&&self)||Y0(typeof A0=="object"&&A0)||function(){return this}()||Function("return this")(),z4=Function.prototype,AF=z4.apply,Kot=z4.bind,OF=z4.call,kF=typeof Reflect=="object"&&Reflect.apply||(Kot?OF.bind(AF):function(){return OF.apply(AF,arguments)}),BF=Function.prototype,H4=BF.bind,U4=BF.call,Yot=H4&&H4.bind(U4),_e=H4?function(t){return t&&Yot(U4,t)}:function(t){return t&&function(){return U4.apply(t,arguments)}},xr=function(t){return typeof t=="function"},cn=function(t){try{return!!t()}catch{return!0}},Wr=!cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),yd=Function.prototype.call,wo=yd.bind?yd.bind(yd):function(){return yd.apply(yd,arguments)},_F={}.propertyIsEnumerable,FF=Object.getOwnPropertyDescriptor,Xot=FF&&!_F.call({1:2},1)?function(t){var e=FF(this,t);return!!e&&e.enumerable}:_F,W4={f:Xot},Tu=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},$ot=_e({}.toString),Zot=_e("".slice),Pu=function(t){return Zot($ot(t),8,-1)},G4=Ft.Object,Jot=_e("".split),TF=cn(function(){return!G4("z").propertyIsEnumerable(0)})?function(t){return Pu(t)=="String"?Jot(t,""):G4(t)}:G4,Qot=Ft.TypeError,q4=function(t){if(t==null)throw Qot("Can't call method on "+t);return t},Eo=function(t){return TF(q4(t))},Kn=function(t){return typeof t=="object"?t!==null:xr(t)},On={},PF=function(t){return xr(t)?t:void 0},bd=function(t,e){return arguments.length<2?PF(On[t])||PF(Ft[t]):On[t]&&On[t][e]||Ft[t]&&Ft[t][e]},NF=_e({}.isPrototypeOf),K4=bd("navigator","userAgent")||"",jF=Ft.process,IF=Ft.Deno,LF=jF&&jF.versions||IF&&IF.version,RF=LF&&LF.v8;RF&&(K0=(Zi=RF.split("."))[0]>0&&Zi[0]<4?1:+(Zi[0]+Zi[1])),!K0&&K4&&(!(Zi=K4.match(/Edge\/(\d+)/))||Zi[1]>=74)&&(Zi=K4.match(/Chrome\/(\d+)/))&&(K0=+Zi[1]);var X0=K0,Co=!!Object.getOwnPropertySymbols&&!cn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X0&&X0<41}),Y4=Co&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tit=Ft.Object,Bl=Y4?function(t){return typeof t=="symbol"}:function(t){var e=bd("Symbol");return xr(e)&&NF(e.prototype,tit(t))},eit=Ft.String,rit=Ft.TypeError,MF=function(t){if(xr(t))return t;throw rit(function(e){try{return eit(e)}catch{return"Object"}}(t)+" is not a function")},nit=Ft.TypeError,oit=Object.defineProperty,Ji=Ft["__core-js_shared__"]||function(t,e){try{oit(Ft,t,{value:e,configurable:!0,writable:!0})}catch{Ft[t]=e}return e}("__core-js_shared__",{}),Nu=O0(function(t){(t.exports=function(e,r){return Ji[e]||(Ji[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),iit=Ft.Object,wd=function(t){return iit(q4(t))},ait=_e({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return ait(wd(t),e)},uit=0,sit=Math.random(),lit=_e(1 .toString),$0=function(t){return"Symbol("+(t===void 0?"":t)+")_"+lit(++uit+sit,36)},Ed=Nu("wks"),ju=Ft.Symbol,VF=ju&&ju.for,cit=Y4?ju:ju&&ju.withoutSetter||$0,fn=function(t){if(!Kt(Ed,t)||!Co&&typeof Ed[t]!="string"){var e="Symbol."+t;Co&&Kt(ju,t)?Ed[t]=ju[t]:Ed[t]=Y4&&VF?VF(e):cit(e)}return Ed[t]},fit=Ft.TypeError,dit=fn("toPrimitive"),_l=function(t){var e=function(r,n){if(!Kn(r)||Bl(r))return r;var o,i,a=(o=r[dit])==null?void 0:MF(o);if(a){if(i=wo(a,r,n),!Kn(i)||Bl(i))return i;throw fit("Can't convert object to primitive value")}return function(u,s){var l,c;if(xr(l=u.toString)&&!Kn(c=wo(l,u))||xr(l=u.valueOf)&&!Kn(c=wo(l,u)))return c;throw nit("Can't convert object to primitive value")}(r)}(t,"string");return Bl(e)?e:e+""},X4=Ft.document,pit=Kn(X4)&&Kn(X4.createElement),zF=function(t){return pit?X4.createElement(t):{}},HF=!Wr&&!cn(function(){return Object.defineProperty(zF("div"),"a",{get:function(){return 7}}).a!=7}),UF=Object.getOwnPropertyDescriptor,$4={f:Wr?UF:function(t,e){if(t=Eo(t),e=_l(e),HF)try{return UF(t,e)}catch{}if(Kt(t,e))return Tu(!wo(W4.f,t,e),t[e])}},hit=/#|\.prototype\./,Cd=function(t,e){var r=vit[git(t)];return r==yit||r!=mit&&(xr(e)?cn(e):!!e)},git=Cd.normalize=function(t){return String(t).replace(hit,".").toLowerCase()},vit=Cd.data={},mit=Cd.NATIVE="N",yit=Cd.POLYFILL="P",bit=Cd,WF=_e(_e.bind),GF=function(t,e){return MF(t),e===void 0?t:WF?WF(t,e):function(){return t.apply(e,arguments)}},wit=Ft.String,Eit=Ft.TypeError,Iu=function(t){if(Kn(t))return t;throw Eit(wit(t)+" is not an object")},Cit=Ft.TypeError,qF=Object.defineProperty,Lu={f:Wr?qF:function(t,e,r){if(Iu(t),e=_l(e),Iu(r),HF)try{return qF(t,e,r)}catch{}if("get"in r||"set"in r)throw Cit("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},xo=Wr?function(t,e,r){return Lu.f(t,e,Tu(1,r))}:function(t,e,r){return t[e]=r,t},xit=$4.f,Sit=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return kF(t,this,arguments)};return e.prototype=t.prototype,e},Qi=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Ft:d?Ft[c]:(Ft[c]||{}).prototype,h=f?On:On[c]||xo(On,c,{})[c],m=h.prototype;for(o in e)r=!bit(f?o:c+(d?".":"#")+o,t.forced)&&v&&Kt(v,o),a=h[o],r&&(u=t.noTargetGet?(l=xit(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?GF(i,Ft):t.wrap&&r?Sit(i):p&&xr(i)?_e(i):i,(t.sham||i&&i.sham||a&&a.sham)&&xo(s,"sham",!0),xo(h,o,s),p&&(Kt(On,n=c+"Prototype")||xo(On,n,{}),xo(On[n],o,i),t.real&&m&&!m[o]&&xo(m,o,i)))},Z0=Array.isArray||function(t){return Pu(t)=="Array"},Dit=Math.ceil,Ait=Math.floor,Z4=function(t){var e=+t;return e!=e||e===0?0:(e>0?Ait:Dit)(e)},Oit=Math.min,J0=function(t){return(e=t.length)>0?Oit(Z4(e),9007199254740991):0;var e},J4=function(t,e,r){var n=_l(e);n in t?Lu.f(t,n,Tu(0,r)):t[n]=r},KF={};KF[fn("toStringTag")]="z";var Q4=String(KF)==="[object z]",kit=fn("toStringTag"),Bit=Ft.Object,_it=Pu(function(){return arguments}())=="Arguments",Q0=Q4?Pu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Bit(t),kit))=="string"?r:_it?Pu(e):(n=Pu(e))=="Object"&&xr(e.callee)?"Arguments":n},Fit=_e(Function.toString);xr(Ji.inspectSource)||(Ji.inspectSource=function(t){return Fit(t)});var YF=Ji.inspectSource,XF=function(){},Tit=[],$F=bd("Reflect","construct"),tC=/^\s*(?:class|function)\b/,Pit=_e(tC.exec),Nit=!tC.exec(XF),xd=function(t){if(!xr(t))return!1;try{return $F(XF,Tit,t),!0}catch{return!1}},jit=!$F||cn(function(){var t;return xd(xd.call)||!xd(Object)||!xd(function(){t=!0})||t})?function(t){if(!xr(t))return!1;switch(Q0(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Nit||!!Pit(tC,YF(t))}:xd,Iit=fn("species"),ZF=Ft.Array,JF=function(t,e){return new(function(r){var n;return Z0(r)&&(n=r.constructor,(jit(n)&&(n===ZF||Z0(n.prototype))||Kn(n)&&(n=n[Iit])===null)&&(n=void 0)),n===void 0?ZF:n}(t))(e===0?0:e)},Lit=fn("species"),QF=fn("isConcatSpreadable"),tT=Ft.TypeError,Rit=X0>=51||!cn(function(){var t=[];return t[QF]=!1,t.concat()[0]!==t}),Mit=X0>=51||!cn(function(){var t=[];return(t.constructor={})[Lit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Vit=function(t){if(!Kn(t))return!1;var e=t[QF];return e!==void 0?!!e:Z0(t)};Qi({target:"Array",proto:!0,forced:!Rit||!Mit},{concat:function(t){var e,r,n,o,i,a=wd(this),u=JF(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Vit(i=e===-1?a:arguments[e])){if(s+(o=J0(i))>9007199254740991)throw tT("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&J4(u,s,i[r])}else{if(s>=9007199254740991)throw tT("Maximum allowed index exceeded");J4(u,s++,i)}return u.length=s,u}});var tv,zit=Ft.String,ev=function(t){if(Q0(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zit(t)},Hit=Math.max,Uit=Math.min,eC=function(t,e){var r=Z4(t);return r<0?Hit(r+e,0):Uit(r,e)},Wit=function(t){return function(e,r,n){var o,i=Eo(e),a=J0(i),u=eC(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Git={indexOf:Wit(!1)},Sd={},qit=Git.indexOf,eT=_e([].push),rT=function(t,e){var r,n=Eo(t),o=0,i=[];for(r in n)!Kt(Sd,r)&&Kt(n,r)&&eT(i,r);for(;e.length>o;)Kt(n,r=e[o++])&&(~qit(i,r)||eT(i,r));return i},rv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rC=Object.keys||function(t){return rT(t,rv)},Kit=Wr?Object.defineProperties:function(t,e){Iu(t);for(var r,n=Eo(e),o=rC(e),i=o.length,a=0;i>a;)Lu.f(t,r=o[a++],n[r]);return t},Yit=bd("document","documentElement"),nT=Nu("keys"),nv=function(t){return nT[t]||(nT[t]=$0(t))},oT=nv("IE_PROTO"),nC=function(){},iT=function(t){return"<script>"+t+"<\/script>"},aT=function(t){t.write(iT("")),t.close();var e=t.parentWindow.Object;return t=null,e},ov=function(){try{tv=new ActiveXObject("htmlfile")}catch{}var t,e;ov=typeof document<"u"?document.domain&&tv?aT(tv):((e=zF("iframe")).style.display="none",Yit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(iT("document.F=Object")),t.close(),t.F):aT(tv);for(var r=rv.length;r--;)delete ov.prototype[rv[r]];return ov()};Sd[oT]=!0;var iv,Dd,av,Ru=Object.create||function(t,e){var r;return t!==null?(nC.prototype=Iu(t),r=new nC,nC.prototype=null,r[oT]=t):r=ov(),e===void 0?r:Kit(r,e)},Xit=rv.concat("length","prototype"),uT={f:Object.getOwnPropertyNames||function(t){return rT(t,Xit)}},$it=Ft.Array,Zit=Math.max,sT=uT.f,lT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],cT={f:function(t){return lT&&Pu(t)=="Window"?function(e){try{return sT(e)}catch{return function(n,o,i){for(var a=J0(n),u=eC(void 0,a),s=eC(a,a),l=$it(Zit(s-u,0)),c=0;u<s;u++,c++)J4(l,c,n[u]);return l.length=c,l}(lT)}}(t):sT(Eo(t))}},oC={f:Object.getOwnPropertySymbols},Jit=_e([].slice),uv=function(t,e,r,n){xo(t,e,r)},iC={f:fn},Qit=Lu.f,Me=function(t){var e=On.Symbol||(On.Symbol={});Kt(e,t)||Qit(e,t,{value:iC.f(t)})},tat=Q4?{}.toString:function(){return"[object "+Q0(this)+"]"},eat=Lu.f,fT=fn("toStringTag"),sv=function(t,e,r,n){if(t){var o=r?t:t.prototype;Kt(o,fT)||eat(o,fT,{configurable:!0,value:e}),n&&!Q4&&xo(o,"toString",tat)}},dT=Ft.WeakMap,rat=xr(dT)&&/native code/.test(YF(dT)),aC=Ft.TypeError,nat=Ft.WeakMap;if(rat||Ji.state){var Mu=Ji.state||(Ji.state=new nat),oat=_e(Mu.get),pT=_e(Mu.has),iat=_e(Mu.set);iv=function(t,e){if(pT(Mu,t))throw new aC("Object already initialized");return e.facade=t,iat(Mu,t,e),e},Dd=function(t){return oat(Mu,t)||{}},av=function(t){return pT(Mu,t)}}else{var Fl=nv("state");Sd[Fl]=!0,iv=function(t,e){if(Kt(t,Fl))throw new aC("Object already initialized");return e.facade=t,xo(t,Fl,e),e},Dd=function(t){return Kt(t,Fl)?t[Fl]:{}},av=function(t){return Kt(t,Fl)}}var Tl={set:iv,get:Dd,has:av,enforce:function(t){return av(t)?Dd(t):iv(t,{})},getterFor:function(t){return function(e){var r;if(!Kn(e)||(r=Dd(e)).type!==t)throw aC("Incompatible receiver, "+t+" required");return r}}},hT=_e([].push),ta=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=wd(s),h=TF(v),m=GF(l,c),y=J0(h),g=0,w=f||JF,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:hT(E,d)}else switch(t){case 4:return!1;case 7:hT(E,d)}return i?-1:n||o?o:E}},lv=[ta(0),ta(1),ta(2),ta(3),ta(4),ta(5),ta(6),ta(7)][0],Gr=nv("hidden"),gT=fn("toPrimitive"),aat=Tl.set,vT=Tl.getterFor("Symbol"),Yn=Object.prototype,ea=Ft.Symbol,ra=ea&&ea.prototype,mT=Ft.TypeError,uC=Ft.QObject,Ad=bd("JSON","stringify"),yT=$4.f,na=Lu.f,bT=cT.f,uat=W4.f,wT=_e([].push),ri=Nu("symbols"),Od=Nu("op-symbols"),sC=Nu("string-to-symbol-registry"),lC=Nu("symbol-to-string-registry"),sat=Nu("wks"),cC=!uC||!uC.prototype||!uC.prototype.findChild,fC=Wr&&cn(function(){return Ru(na({},"a",{get:function(){return na(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=yT(Yn,e);n&&delete Yn[e],na(t,e,r),n&&t!==Yn&&na(Yn,e,n)}:na,dC=function(t,e){var r=ri[t]=Ru(ra);return aat(r,{type:"Symbol",tag:t,description:e}),Wr||(r.description=e),r},cv=function(t,e,r){t===Yn&&cv(Od,e,r),Iu(t);var n=_l(e);return Iu(r),Kt(ri,n)?(r.enumerable?(Kt(t,Gr)&&t[Gr][n]&&(t[Gr][n]=!1),r=Ru(r,{enumerable:Tu(0,!1)})):(Kt(t,Gr)||na(t,Gr,Tu(1,{})),t[Gr][n]=!0),fC(t,n,r)):na(t,n,r)},ET=function(t,e){Iu(t);var r=Eo(e),n=rC(r).concat(pC(r));return lv(n,function(o){Wr&&!wo(CT,r,o)||cv(t,o,r[o])}),t},CT=function(t){var e=_l(t),r=wo(uat,this,e);return!(this===Yn&&Kt(ri,e)&&!Kt(Od,e))&&(!(r||!Kt(this,e)||!Kt(ri,e)||Kt(this,Gr)&&this[Gr][e])||r)},xT=function(t,e){var r=Eo(t),n=_l(e);if(r!==Yn||!Kt(ri,n)||Kt(Od,n)){var o=yT(r,n);return!o||!Kt(ri,n)||Kt(r,Gr)&&r[Gr][n]||(o.enumerable=!0),o}},ST=function(t){var e=bT(Eo(t)),r=[];return lv(e,function(n){Kt(ri,n)||Kt(Sd,n)||wT(r,n)}),r},pC=function(t){var e=t===Yn,r=bT(e?Od:Eo(t)),n=[];return lv(r,function(o){!Kt(ri,o)||e&&!Kt(Yn,o)||wT(n,ri[o])}),n};if(Co||(ra=(ea=function(){if(NF(ra,this))throw mT("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?ev(arguments[0]):void 0,e=$0(t),r=function(n){this===Yn&&wo(r,Od,n),Kt(this,Gr)&&Kt(this[Gr],e)&&(this[Gr][e]=!1),fC(this,e,Tu(1,n))};return Wr&&cC&&fC(Yn,e,{configurable:!0,set:r}),dC(e,t)}).prototype,uv(ra,"toString",function(){return vT(this).tag}),uv(ea,"withoutSetter",function(t){return dC($0(t),t)}),W4.f=CT,Lu.f=cv,$4.f=xT,uT.f=cT.f=ST,oC.f=pC,iC.f=function(t){return dC(fn(t),t)},Wr&&na(ra,"description",{configurable:!0,get:function(){return vT(this).description}})),Qi({global:!0,wrap:!0,forced:!Co,sham:!Co},{Symbol:ea}),lv(rC(sat),function(t){Me(t)}),Qi({target:"Symbol",stat:!0,forced:!Co},{for:function(t){var e=ev(t);if(Kt(sC,e))return sC[e];var r=ea(e);return sC[e]=r,lC[r]=e,r},keyFor:function(t){if(!Bl(t))throw mT(t+" is not a symbol");if(Kt(lC,t))return lC[t]},useSetter:function(){cC=!0},useSimple:function(){cC=!1}}),Qi({target:"Object",stat:!0,forced:!Co,sham:!Wr},{create:function(t,e){return e===void 0?Ru(t):ET(Ru(t),e)},defineProperty:cv,defineProperties:ET,getOwnPropertyDescriptor:xT}),Qi({target:"Object",stat:!0,forced:!Co},{getOwnPropertyNames:ST,getOwnPropertySymbols:pC}),Qi({target:"Object",stat:!0,forced:cn(function(){oC.f(1)})},{getOwnPropertySymbols:function(t){return oC.f(wd(t))}}),Ad){var lat=!Co||cn(function(){var t=ea();return Ad([t])!="[null]"||Ad({a:t})!="{}"||Ad(Object(t))!="{}"});Qi({target:"JSON",stat:!0,forced:lat},{stringify:function(t,e,r){var n=Jit(arguments),o=e;if((Kn(e)||t!==void 0)&&!Bl(t))return Z0(e)||(e=function(i,a){if(xr(o)&&(a=wo(o,this,i,a)),!Bl(a))return a}),n[1]=e,kF(Ad,null,n)}})}if(!ra[gT]){var cat=ra.valueOf;uv(ra,gT,function(t){return wo(cat,this)})}sv(ea,"Symbol"),Sd[Gr]=!0,Me("asyncIterator"),Me("hasInstance"),Me("isConcatSpreadable"),Me("iterator"),Me("match"),Me("matchAll"),Me("replace"),Me("search"),Me("species"),Me("split"),Me("toPrimitive"),Me("toStringTag"),Me("unscopables"),sv(Ft.JSON,"JSON",!0);var oa,DT,AT,fat=On.Symbol,Vu={},OT=Function.prototype,dat=Wr&&Object.getOwnPropertyDescriptor,kT=Kt(OT,"name"),pat={PROPER:kT&&(function(){}).name==="something",CONFIGURABLE:kT&&(!Wr||Wr&&dat(OT,"name").configurable)},hat=!cn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),BT=nv("IE_PROTO"),hC=Ft.Object,gat=hC.prototype,gC=hat?hC.getPrototypeOf:function(t){var e=wd(t);if(Kt(e,BT))return e[BT];var r=e.constructor;return xr(r)&&e instanceof r?r.prototype:e instanceof hC?gat:null},vC=fn("iterator"),_T=!1;[].keys&&("next"in(AT=[].keys())?(DT=gC(gC(AT)))!==Object.prototype&&(oa=DT):_T=!0);var vat=oa==null||cn(function(){var t={};return oa[vC].call(t)!==t});oa=vat?{}:Ru(oa),xr(oa[vC])||uv(oa,vC,function(){return this});var FT={IteratorPrototype:oa,BUGGY_SAFARI_ITERATORS:_T},mat=FT.IteratorPrototype,yat=function(){return this};Ft.String,Ft.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var bat=pat.PROPER,mC=FT.BUGGY_SAFARI_ITERATORS,wat=fn("iterator"),Eat=function(){return this},TT=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=Ru(mat,{next:Tu(1,g)}),sv(m,E,!1,!0),Vu[E]=yat})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!mC&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[wat]||d["@@iterator"]||o&&d[o],v=!mC&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=gC(h.call(new t)))!==Object.prototype&&u.next&&(sv(u,c,!0,!0),Vu[c]=Eat),bat&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return wo(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Qi({target:e,proto:!0,forced:mC||f},s)),Vu[e]=v,s},Cat=Tl.set,xat=Tl.getterFor("Array Iterator");TT(Array,"Array",function(t,e){Cat(this,{type:"Array Iterator",target:Eo(t),index:0,kind:e})},function(){var t=xat(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),Vu.Arguments=Vu.Array;var PT=fn("toStringTag");for(var yC in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var NT=Ft[yC],bC=NT&&NT.prototype;bC&&Q0(bC)!==PT&&xo(bC,PT,yC),Vu[yC]=Vu.Array}var Sat=fat;Me("asyncDispose"),Me("dispose"),Me("matcher"),Me("metadata"),Me("observable"),Me("patternMatch"),Me("replaceAll");var fv=Sat,Dat=_e("".charAt),jT=_e("".charCodeAt),Aat=_e("".slice),Oat=function(t){return function(e,r){var n,o,i=ev(q4(e)),a=Z4(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=jT(i,a))<55296||n>56319||a+1===u||(o=jT(i,a+1))<56320||o>57343?t?Dat(i,a):n:t?Aat(i,a,a+2):o-56320+(n-55296<<10)+65536}},kat=Oat(!0),Bat=Tl.set,_at=Tl.getterFor("String Iterator");TT(String,"String",function(t){Bat(this,{type:"String Iterator",string:ev(t),index:0})},function(){var t,e=_at(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=kat(r,n),e.index+=t.length,{value:t,done:!1})});var Fat=iC.f("iterator"),Tat=O0(function(t){function e(r){return typeof fv=="function"&&typeof Fat=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof fv=="function"&&n.constructor===fv&&n!==fv.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),IT=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Tat),Pat=P0.EXISTS,Nat=ml.f,LT=Function.prototype,jat=mt(LT.toString),RT=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Iat=mt(RT.exec);Gn&&!Pat&&Nat(LT,"name",{configurable:!0,get:function(){try{return Iat(RT,jat(this))[1]}catch{return""}}});var MT=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.mark,n=C.marks(e);return n&&n[r]?n[r]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!qt(C.nodes(e,{match:function(r){return O.getNodeType(r)==="pre"||!!C.isVoid(e,r)},universal:!0}),1)[0])},t.prototype.exec=function(e,r){var n=this.mark;r?e.addMark(n,r):e.removeMark(n)},t}(),Lat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("fontSize.title"),r.iconSvg=snt,r.mark="fontSize",r}return ye(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u});else if(IT(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(MT),Rat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("fontFamily.title"),r.iconSvg=lnt,r.mark="fontFamily",r.selectPanelWidth=150,r}return ye(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(IT(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(MT),Mat={renderStyle:function(t,e){var r=t,n=r.fontSize,o=r.fontFamily,i=e;return n&&_u(i,{fontSize:n}),o&&_u(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var r,n=t,o=n.fontSize,i=n.fontFamily;return o||i?((D4(e)||Dl(r=_(e))!=="span")&&(r=_("<span>"+e+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),Sl(r)):e},preParseHtml:[Got],parseStyleHtml:function(t,e,r){var n=_(t);if(!it.isText(e))return e;var o=e,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=qn(n,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=qn(n,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Lat},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new Rat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Vat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=_(t),r=qn(e,"padding-left");return/\dem/.test(r)&&e.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&e.css("text-indent","2em"),e[0]}},VT=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var r=qt(C.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":qt(n,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=qt(C.nodes(e,{match:function(n){var o=O.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t}(),zat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("indent.decrease"),r.iconSvg=cnt,r}return ye(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},e.prototype.exec=function(r,n){R.setNodes(r,{indent:null},{match:function(o){return ft.isElement(o)}})},e}(VT),Hat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("indent.increase"),r.iconSvg=fnt,r}return ye(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},e.prototype.exec=function(r,n){R.setNodes(r,{indent:"2em"},{match:function(o){return ft.isElement(o)},mode:"highest"})},e}(VT),Uat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.indent,n=e;return r&&_u(n,{textIndent:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.indent;if(!r)return e;var n=_(e);return n.css("text-indent",r),Sl(n)},preParseHtml:[Vat],parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e))return e;var o=e,i=qn(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Hat}},{key:"delIndent",factory:function(){return new zat}}]},dv=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=qt(C.nodes(e,{match:function(n){var o=O.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},t}(),Wat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.left"),r.iconSvg=dnt,r}return ye(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"left"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(dv),Gat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.right"),r.iconSvg=pnt,r}return ye(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"right"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(dv),qat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.center"),r.iconSvg=hnt,r}return ye(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"center"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(dv),Kat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=tt("justify.justify"),r.iconSvg=gnt,r}return ye(e,t),e.prototype.exec=function(r,n){R.setNodes(r,{textAlign:"justify"},{match:function(o){return ft.isElement(o)&&!r.isInline(o)}})},e}(dv),Yat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.textAlign,n=e;return r&&_u(n,{textAlign:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.textAlign;if(!r)return e;var n=_(e);return n.css("text-align",r),Sl(n)},parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e))return e;var o=e,i=qn(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Wat}},{key:"justifyRight",factory:function(){return new Gat}},{key:"justifyCenter",factory:function(){return new qat}},{key:"justifyJustify",factory:function(){return new Kat}}]},Xat=function(){function t(){this.title=tt("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){r.push({text:a,value:a})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.getMatchNode=function(e){var r=qt(C.nodes(e,{match:function(n){var o=O.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getMatchNode(e);return r==null?"":ft.isElement(r)&&r.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,r){R.setNodes(e,{lineHeight:r.toString()},{mode:"highest"})},t}(),$at={renderStyle:function(t,e){if(!ft.isElement(t))return e;var r=t.lineHeight,n=e;return r&&_u(n,{lineHeight:r}),n},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var n=_(e);return n.css("line-height",r),Sl(n)},parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e))return e;var o=e,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=qn(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Xat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Zat=function(){function t(){this.title=tt("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.redo=="function"&&e.redo()},t}(),Jat=function(){function t(){this.title=tt("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.undo=="function"&&e.undo()},t}(),Qat={menus:[{key:"redo",factory:function(){return new Zat}},{key:"undo",factory:function(){return new Jat}}]},tut={type:"divider",renderElem:function(t,e,r){return Vs("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:O.isNodeSelected(r,t)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[Vs("hr")])}},eut=function(){function t(){this.title=tt("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var n=O.getNodeType(r);return n==="table"||n==="pre"||void 0})},t.prototype.exec=function(e,r){R.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),rut={renderElems:[tut],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new eut}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="divider"||e(o)},n.normalizeNode=function(o){var i=qt(o,2),a=i[0],u=i[1];if(O.getNodeType(a)!=="divider")return r([a,u]);O.isLastNode(n,a)&&R.insertNodes(n,O.genEmptyParagraph(),{at:[u[0]+1]})},n}},nut=R0.map;tr({target:"Array",proto:!0,forced:!i4("map")},{map:function(t){return nut(this,t,arguments.length>1?arguments[1]:void 0)}});var out=mt([].join),iut=_0!=Object,aut=$_("join",",");tr({target:"Array",proto:!0,forced:iut||!aut},{join:function(t){return out(vl(this),t===void 0?",":t)}});var uut=function(){function t(){this.title=tt("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var r=O.getSelectedNodeByType(e,"code");if(r==null)return null;var n=O.getParentNode(e,r);return n==null||O.getNodeType(n)!=="pre"?null:r},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);return r==null?"":r.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var r=O.getSelectedElems(e);return!!r.some(function(n){return e.isVoid(n)})||!r.some(function(n){var o=O.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,r){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,r.toString())},t.prototype.changeToPlainText=function(e){var r=this.getSelectCodeElem(e);if(r!=null){var n=Q.string(r);R.removeNodes(e,{mode:"highest"});var o=n.split(`
104
+ `).map(function(i){return{type:"paragraph",children:[{text:i}]}});R.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,r){var n,o,i=[],a=C.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=q_(a),s=u.next();!s.done;s=u.next()){var l=qt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}R.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
105
+ `)}]}]};R.insertNodes(e,c,{mode:"highest"})},t}(),sut={key:"codeBlock",factory:function(){return new uut}};tr({target:"String",proto:!0,forced:dd("anchor")},{anchor:function(t){return fd(this,"a","name",t)}}),v4("match",function(t,e,r){return[function(n){var o=Dn(this),i=n==null?void 0:F0(n,t);return i?Re(i,n,o):new RegExp(n)[t](Oe(o))},function(n){var o=ln(this),i=Oe(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return ld(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=ld(o,i))!==null;){var f=Oe(s[0]);l[c]=f,f===""&&(o.lastIndex=m4(i,id(o.lastIndex),u)),c++}return c===0?null:l}]});var lut={type:"pre",renderElem:function(t,e,r){return bt("pre",null,e)}},cut={type:"code",renderElem:function(t,e,r){return bt("code",null,e)}},fut={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);return(e=e.filter(function(o){return O.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return O.getNodeType(o)==="code"})}}},dut={menus:[sut],editorPlugin:function(t){var e=t.insertBreak,r=t.normalizeNode,n=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=O.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=Q.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
106
+ `),h=v.length;return h===0?"":v[h-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
107
+ `+s)}}o.insertText(`
108
+ `)}else e()},o.normalizeNode=function(i){var a=qt(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l==="code"&&s.length<=1&&R.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(O.isLastNode(o,u)&&R.insertNodes(o,O.genEmptyParagraph(),{at:[s[0]+1]}),O.getNodeType(u.children[0])!=="code"&&(R.unwrapNodes(o),R.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(O.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");C.insertText(o,a)}else n(i)},o},renderElems:[lut,cut],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=_(t);if(Dl(e)!=="code")return t;var r=e.find("xmp");if(r.length===0)return t;var n=r.text();return r.remove(),e.text(n),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,r){return{type:"code",language:"",children:[{text:_(t)[0].textContent||""}]}}},fut]},put=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,r){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),hut={menus:[{key:"fullScreen",factory:function(){return new put}}]},gut=function(){function t(){this.title=tt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!!V.isExpanded(r)},t.prototype.exec=function(e,r){var n=e.selection;if(n!=null){var o=[n.anchor.path[0]];R.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(C.start(e,o))}},t}(),vut=[Ant,oot,Mat,Uat,Yat,$at,kot,rut,Uot,got,dut,zot,Qnt,Xrt,Tot,Qat,hut,{menus:[{key:"enter",factory:function(){return new gut}}]}];Ur("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Ur("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var zT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wC(t){var e={exports:{}};return t(e,e.exports),e.exports}var ia,pv,hv=function(t){return t&&t.Math==Math&&t},wt=hv(typeof globalThis=="object"&&globalThis)||hv(typeof window=="object"&&window)||hv(typeof self=="object"&&self)||hv(typeof zT=="object"&&zT)||function(){return this}()||Function("return this")(),HT=Function.prototype,EC=HT.bind,CC=HT.call,mut=EC&&EC.bind(CC),Nt=EC?function(t){return t&&mut(CC,t)}:function(t){return t&&function(){return CC.apply(t,arguments)}},ke=function(t){try{return!!t()}catch{return!0}},yut=Nt({}.toString),but=Nt("".slice),ni=function(t){return but(yut(t),8,-1)},xC=wt.Object,wut=Nt("".split),UT=ke(function(){return!xC("z").propertyIsEnumerable(0)})?function(t){return ni(t)=="String"?wut(t,""):xC(t)}:xC,Eut=wt.TypeError,gv=function(t){if(t==null)throw Eut("Can't call method on "+t);return t},Pl=function(t){return UT(gv(t))},Cut=Object.defineProperty,SC=function(t,e){try{Cut(wt,t,{value:e,configurable:!0,writable:!0})}catch{wt[t]=e}return e},aa=wt["__core-js_shared__"]||SC("__core-js_shared__",{}),DC=wC(function(t){(t.exports=function(e,r){return aa[e]||(aa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),xut=wt.Object,kd=function(t){return xut(gv(t))},Sut=Nt({}.hasOwnProperty),er=Object.hasOwn||function(t,e){return Sut(kd(t),e)},Dut=0,Aut=Math.random(),Out=Nt(1 .toString),AC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Out(++Dut+Aut,36)},Fe=function(t){return typeof t=="function"},kut=function(t){return Fe(t)?t:void 0},Bd=function(t,e){return arguments.length<2?kut(wt[t]):wt[t]&&wt[t][e]},OC=Bd("navigator","userAgent")||"",WT=wt.process,GT=wt.Deno,qT=WT&&WT.versions||GT&&GT.version,KT=qT&&qT.v8;KT&&(pv=(ia=KT.split("."))[0]>0&&ia[0]<4?1:+(ia[0]+ia[1])),!pv&&OC&&(!(ia=OC.match(/Edge\/(\d+)/))||ia[1]>=74)&&(ia=OC.match(/Chrome\/(\d+)/))&&(pv=+ia[1]);var vv,kC=pv,BC=!!Object.getOwnPropertySymbols&&!ke(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&kC&&kC<41}),_C=BC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_d=DC("wks"),zu=wt.Symbol,YT=zu&&zu.for,But=_C?zu:zu&&zu.withoutSetter||AC,vr=function(t){if(!er(_d,t)||!BC&&typeof _d[t]!="string"){var e="Symbol."+t;BC&&er(zu,t)?_d[t]=zu[t]:_d[t]=_C&&YT?YT(e):But(e)}return _d[t]},Te=function(t){return typeof t=="object"?t!==null:Fe(t)},_ut=wt.String,Fut=wt.TypeError,qr=function(t){if(Te(t))return t;throw Fut(_ut(t)+" is not an object")},ua=!ke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),FC=wt.document,Tut=Te(FC)&&Te(FC.createElement),TC=function(t){return Tut?FC.createElement(t):{}},XT=!ua&&!ke(function(){return Object.defineProperty(TC("div"),"a",{get:function(){return 7}}).a!=7}),Fd=Function.prototype.call,ar=Fd.bind?Fd.bind(Fd):function(){return Fd.apply(Fd,arguments)},mv=Nt({}.isPrototypeOf),Put=wt.Object,PC=_C?function(t){return typeof t=="symbol"}:function(t){var e=Bd("Symbol");return Fe(e)&&mv(e.prototype,Put(t))},Nut=wt.String,NC=function(t){try{return Nut(t)}catch{return"Object"}},jut=wt.TypeError,jC=function(t){if(Fe(t))return t;throw jut(NC(t)+" is not a function")},Td=function(t,e){var r=t[e];return r==null?void 0:jC(r)},Iut=wt.TypeError,Lut=wt.TypeError,Rut=vr("toPrimitive"),IC=function(t){var e=function(r,n){if(!Te(r)||PC(r))return r;var o,i=Td(r,Rut);if(i){if(o=ar(i,r,n),!Te(o)||PC(o))return o;throw Lut("Can't convert object to primitive value")}return function(a,u){var s,l;if(Fe(s=a.toString)&&!Te(l=ar(s,a))||Fe(s=a.valueOf)&&!Te(l=ar(s,a)))return l;throw Iut("Can't convert object to primitive value")}(r)}(t,"string");return PC(e)?e:e+""},Mut=wt.TypeError,$T=Object.defineProperty,Hu={f:ua?$T:function(t,e,r){if(qr(t),e=IC(e),qr(r),XT)try{return $T(t,e,r)}catch{}if("get"in r||"set"in r)throw Mut("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Vut=Math.ceil,zut=Math.floor,Pd=function(t){var e=+t;return e!=e||e===0?0:(e>0?zut:Vut)(e)},Hut=Math.max,Uut=Math.min,LC=function(t,e){var r=Pd(t);return r<0?Hut(r+e,0):Uut(r,e)},Wut=Math.min,ZT=function(t){return t>0?Wut(Pd(t),9007199254740991):0},Nl=function(t){return ZT(t.length)},JT=function(t){return function(e,r,n){var o,i=Pl(e),a=Nl(i),u=LC(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},QT={includes:JT(!0),indexOf:JT(!1)},yv={},Gut=QT.indexOf,tP=Nt([].push),eP=function(t,e){var r,n=Pl(t),o=0,i=[];for(r in n)!er(yv,r)&&er(n,r)&&tP(i,r);for(;e.length>o;)er(n,r=e[o++])&&(~Gut(i,r)||tP(i,r));return i},bv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qut=Object.keys||function(t){return eP(t,bv)},Kut=ua?Object.defineProperties:function(t,e){qr(t);for(var r,n=Pl(e),o=qut(e),i=o.length,a=0;i>a;)Hu.f(t,r=o[a++],n[r]);return t},Yut=Bd("document","documentElement"),rP=DC("keys"),RC=function(t){return rP[t]||(rP[t]=AC(t))},nP=RC("IE_PROTO"),MC=function(){},oP=function(t){return"<script>"+t+"<\/script>"},iP=function(t){t.write(oP("")),t.close();var e=t.parentWindow.Object;return t=null,e},wv=function(){try{vv=new ActiveXObject("htmlfile")}catch{}var t,e;wv=typeof document<"u"?document.domain&&vv?iP(vv):((e=TC("iframe")).style.display="none",Yut.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(oP("document.F=Object")),t.close(),t.F):iP(vv);for(var r=bv.length;r--;)delete wv.prototype[bv[r]];return wv()};yv[nP]=!0;var VC=Object.create||function(t,e){var r;return t!==null?(MC.prototype=qr(t),r=new MC,MC.prototype=null,r[nP]=t):r=wv(),e===void 0?r:Kut(r,e)},zC=vr("unscopables"),HC=Array.prototype;HC[zC]==null&&Hu.f(HC,zC,{configurable:!0,value:VC(null)});var Nd=function(t){HC[zC][t]=!0},jl={},Xut=Nt(Function.toString);Fe(aa.inspectSource)||(aa.inspectSource=function(t){return Xut(t)});var Ev,jd,Cv,UC=aa.inspectSource,aP=wt.WeakMap,uP=Fe(aP)&&/native code/.test(UC(aP)),xv=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},sa=ua?function(t,e,r){return Hu.f(t,e,xv(1,r))}:function(t,e,r){return t[e]=r,t},WC=wt.TypeError,$ut=wt.WeakMap;if(uP||aa.state){var Uu=aa.state||(aa.state=new $ut),Zut=Nt(Uu.get),sP=Nt(Uu.has),Jut=Nt(Uu.set);Ev=function(t,e){if(sP(Uu,t))throw new WC("Object already initialized");return e.facade=t,Jut(Uu,t,e),e},jd=function(t){return Zut(Uu,t)||{}},Cv=function(t){return sP(Uu,t)}}else{var Il=RC("state");yv[Il]=!0,Ev=function(t,e){if(er(t,Il))throw new WC("Object already initialized");return e.facade=t,sa(t,Il,e),e},jd=function(t){return er(t,Il)?t[Il]:{}},Cv=function(t){return er(t,Il)}}var Wu,lP,cP,So={set:Ev,get:jd,has:Cv,enforce:function(t){return Cv(t)?jd(t):Ev(t,{})},getterFor:function(t){return function(e){var r;if(!Te(e)||(r=jd(e)).type!==t)throw WC("Incompatible receiver, "+t+" required");return r}}},fP={}.propertyIsEnumerable,dP=Object.getOwnPropertyDescriptor,Qut={f:dP&&!fP.call({1:2},1)?function(t){var e=dP(this,t);return!!e&&e.enumerable}:fP},pP=Object.getOwnPropertyDescriptor,hP={f:ua?pP:function(t,e){if(t=Pl(t),e=IC(e),XT)try{return pP(t,e)}catch{}if(er(t,e))return xv(!ar(Qut.f,t,e),t[e])}},gP=Function.prototype,tst=ua&&Object.getOwnPropertyDescriptor,vP=er(gP,"name"),GC={PROPER:vP&&(function(){}).name==="something",CONFIGURABLE:vP&&(!ua||ua&&tst(gP,"name").configurable)},oi=wC(function(t){var e=GC.CONFIGURABLE,r=So.get,n=So.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Fe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!er(u,"name")||e&&u.name!==p)&&sa(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==wt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:sa(i,a,u)):f?i[a]=u:SC(a,u)})(Function.prototype,"toString",function(){return Fe(this)&&r(this).source||UC(this)})}),est=bv.concat("length","prototype"),Sv={f:Object.getOwnPropertyNames||function(t){return eP(t,est)}},rst={f:Object.getOwnPropertySymbols},nst=Nt([].concat),ost=Bd("Reflect","ownKeys")||function(t){var e=Sv.f(qr(t)),r=rst.f;return r?nst(e,r(t)):e},ist=function(t,e){for(var r=ost(e),n=Hu.f,o=hP.f,i=0;i<r.length;i++){var a=r[i];er(t,a)||n(t,a,o(e,a))}},ast=/#|\.prototype\./,Id=function(t,e){var r=sst[ust(t)];return r==cst||r!=lst&&(Fe(e)?ke(e):!!e)},ust=Id.normalize=function(t){return String(t).replace(ast,".").toLowerCase()},sst=Id.data={},lst=Id.NATIVE="N",cst=Id.POLYFILL="P",qC=Id,fst=hP.f,la=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?wt:l?wt[u]||SC(u,{}):(wt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=fst(r,n))&&a.value:r[n],!qC(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ist(i,o)}(t.sham||o&&o.sham)&&sa(i,"sham",!0),oi(r,n,i,t)}},dst=!ke(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),mP=RC("IE_PROTO"),KC=wt.Object,pst=KC.prototype,Dv=dst?KC.getPrototypeOf:function(t){var e=kd(t);if(er(e,mP))return e[mP];var r=e.constructor;return Fe(r)&&e instanceof r?r.prototype:e instanceof KC?pst:null},YC=vr("iterator"),yP=!1;[].keys&&("next"in(cP=[].keys())?(lP=Dv(Dv(cP)))!==Object.prototype&&(Wu=lP):yP=!0);var hst=Wu==null||ke(function(){var t={};return Wu[YC].call(t)!==t});hst&&(Wu={}),Fe(Wu[YC])||oi(Wu,YC,function(){return this});var XC={IteratorPrototype:Wu,BUGGY_SAFARI_ITERATORS:yP},gst=Hu.f,bP=vr("toStringTag"),$C=function(t,e,r){t&&!er(t=r?t:t.prototype,bP)&&gst(t,bP,{configurable:!0,value:e})},vst=XC.IteratorPrototype,mst=function(){return this},yst=wt.String,bst=wt.TypeError,Av=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return qr(n),function(i){if(typeof i=="object"||Fe(i))return i;throw bst("Can't set "+yst(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),wst=GC.PROPER,Est=GC.CONFIGURABLE,wP=XC.IteratorPrototype,ZC=XC.BUGGY_SAFARI_ITERATORS,Ld=vr("iterator"),Cst=function(){return this},EP=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=VC(vst,{next:xv(1,g)}),$C(m,E,!1),jl[E]=mst})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!ZC&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Ld]||d["@@iterator"]||o&&d[o],v=!ZC&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Dv(h.call(new t)))!==Object.prototype&&u.next&&(Dv(u)!==wP&&(Av?Av(u,wP):Fe(u[Ld])||oi(u,Ld,Cst)),$C(u,c,!0)),wst&&o=="values"&&p&&p.name!=="values"&&(Est?sa(d,"name","values"):(f=!0,v=function(){return ar(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||la({target:e,proto:!0,forced:ZC||f},s)),d[Ld]!==v&&oi(d,Ld,v,{name:o}),jl[e]=v,s},xst=So.set,Sst=So.getterFor("Array Iterator"),Rd=EP(Array,"Array",function(t,e){xst(this,{type:"Array Iterator",target:Pl(t),index:0,kind:e})},function(){var t=Sst(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");jl.Arguments=jl.Array,Nd("keys"),Nd("values"),Nd("entries");var CP={};CP[vr("toStringTag")]="z";var JC=String(CP)==="[object z]",Dst=vr("toStringTag"),Ast=wt.Object,Ost=ni(function(){return arguments}())=="Arguments",Ov=JC?ni:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Ast(t),Dst))=="string"?r:Ost?ni(e):(n=ni(e))=="Object"&&Fe(e.callee)?"Arguments":n},kst=JC?{}.toString:function(){return"[object "+Ov(this)+"]"};JC||oi(Object.prototype,"toString",kst,{unsafe:!0});var Bst=wt.String,ii=function(t){if(Ov(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Bst(t)},_st=Nt("".charAt),xP=Nt("".charCodeAt),Fst=Nt("".slice),Tst=function(t){return function(e,r){var n,o,i=ii(gv(e)),a=Pd(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=xP(i,a))<55296||n>56319||a+1===u||(o=xP(i,a+1))<56320||o>57343?t?_st(i,a):n:t?Fst(i,a,a+2):o-56320+(n-55296<<10)+65536}},SP={charAt:Tst(!0)},Pst=SP.charAt,Nst=So.set,jst=So.getterFor("String Iterator");EP(String,"String",function(t){Nst(this,{type:"String Iterator",string:ii(t),index:0})},function(){var t,e=jst(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Pst(r,n),e.index+=t.length,{value:t,done:!1})});var QC=function(t,e,r){for(var n in e)oi(t,n,e[n],r);return t},Ist=wt.Array,Lst=Math.max,DP=Sv.f,AP=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rst={f:function(t){return AP&&ni(t)=="Window"?function(e){try{return DP(e)}catch{return function(n,o,i){for(var a,u,s,l,c=Nl(n),f=LC(void 0,c),d=LC(c,c),p=Ist(Lst(d-f,0)),v=0;f<d;f++,v++)a=p,u=v,s=n[f],(l=IC(u))in a?Hu.f(a,l,xv(0,s)):a[l]=s;return p.length=v,p}(AP)}}(t):DP(Pl(t))}},OP=ke(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),kv=Object.isExtensible,Gu=ke(function(){kv(1)})||OP?function(t){return!!Te(t)&&(!OP||ni(t)!="ArrayBuffer")&&(!kv||kv(t))}:kv,Mst=!ke(function(){return Object.isExtensible(Object.preventExtensions({}))}),t6=wC(function(t){var e=Hu.f,r=!1,n=AC("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Sv.f,s=Nt([].splice),l={};l[n]=1,u(l).length&&(Sv.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},la({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rst.f}))},fastKey:function(u,s){if(!Te(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!er(u,n)){if(!Gu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!er(u,n)){if(!Gu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Mst&&r&&Gu(u)&&!er(u,n)&&i(u),u}};yv[n]=!0}),kP=Nt(Nt.bind),e6=function(t,e){return jC(t),e===void 0?t:kP?kP(t,e):function(){return t.apply(e,arguments)}},Vst=vr("iterator"),zst=Array.prototype,Hst=vr("iterator"),BP=function(t){if(t!=null)return Td(t,Hst)||Td(t,"@@iterator")||jl[Ov(t)]},Ust=wt.TypeError,_P=function(t,e,r){var n,o;qr(t);try{if(!(n=Td(t,"return"))){if(e==="throw")throw r;return r}n=ar(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return qr(n),r},Wst=wt.TypeError,Bv=function(t,e){this.stopped=t,this.result=e},FP=Bv.prototype,TP=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=e6(e,f),m=function(g){return n&&_P(n,"normal",g),new Bv(!0,g)},y=function(g){return d?(qr(g),v?h(g[0],g[1],m):h(g[0],g[1])):v?h(g,m):h(g)};if(p)n=t;else{if(!(o=BP(t)))throw Wst(NC(t)+" is not iterable");if((c=o)!==void 0&&(jl.Array===c||zst[Vst]===c)){for(i=0,a=Nl(t);a>i;i++)if((u=y(t[i]))&&mv(FP,u))return u;return new Bv(!1)}n=function(g,w){var E=arguments.length<2?BP(g):w;if(jC(E))return qr(ar(E,g));throw Ust(NC(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=ar(s,n)).done;){try{u=y(l.value)}catch(g){_P(n,"throw",g)}if(typeof u=="object"&&u&&mv(FP,u))return u}return new Bv(!1)},Gst=wt.TypeError,PP=function(t,e){if(mv(e,t))return t;throw Gst("Incorrect invocation")},NP=vr("iterator"),jP=!1;try{var qst=0,IP={next:function(){return{done:!!qst++}},return:function(){jP=!0}};IP[NP]=function(){return this},Array.from(IP,function(){throw 2})}catch{}var r6=Array.isArray||function(t){return ni(t)=="Array"},LP=function(){},Kst=[],RP=Bd("Reflect","construct"),n6=/^\s*(?:class|function)\b/,Yst=Nt(n6.exec),Xst=!n6.exec(LP),Md=function(t){if(!Fe(t))return!1;try{return RP(LP,Kst,t),!0}catch{return!1}},$st=!RP||ke(function(){var t;return Md(Md.call)||!Md(Object)||!Md(function(){t=!0})||t})?function(t){if(!Fe(t))return!1;switch(Ov(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Xst||!!Yst(n6,UC(t))}:Md,Zst=vr("species"),MP=wt.Array,VP=function(t,e){return new(function(r){var n;return r6(r)&&(n=r.constructor,($st(n)&&(n===MP||r6(n.prototype))||Te(n)&&(n=n[Zst])===null)&&(n=void 0)),n===void 0?MP:n}(t))(e===0?0:e)},zP=Nt([].push),o6=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=kd(s),h=UT(v),m=e6(l,c),y=Nl(h),g=0,w=f||VP,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:zP(E,d)}else switch(t){case 4:return!1;case 7:zP(E,d)}return i?-1:n||o?o:E}},i6={filter:o6(2),find:o6(5),findIndex:o6(6)},_v=t6.getWeakData,Jst=So.set,Qst=So.getterFor,tlt=i6.find,elt=i6.findIndex,rlt=Nt([].splice),nlt=0,Fv=function(t){return t.frozen||(t.frozen=new HP)},HP=function(){this.entries=[]},a6=function(t,e){return tlt(t.entries,function(r){return r[0]===e})};HP.prototype={get:function(t){var e=a6(this,t);if(e)return e[1]},has:function(t){return!!a6(this,t)},set:function(t,e){var r=a6(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=elt(this.entries,function(r){return r[0]===t});return~e&&rlt(this.entries,e,1),!!~e}};var Vd,UP={getConstructor:function(t,e,r,n){var o=t(function(s,l){PP(s,i),Jst(s,{type:e,id:nlt++,frozen:void 0}),l!=null&&TP(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=Qst(e),u=function(s,l,c){var f=a(s),d=_v(qr(l),!0);return d===!0?Fv(f).set(l,c):d[f.id]=c,s};return QC(i,{delete:function(s){var l=a(this);if(!Te(s))return!1;var c=_v(s);return c===!0?Fv(l).delete(s):c&&er(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Te(s))return!1;var c=_v(s);return c===!0?Fv(l).has(s):c&&er(c,l.id)}}),QC(i,r?{get:function(s){var l=a(this);if(Te(s)){var c=_v(s);return c===!0?Fv(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Tv=So.enforce,olt=!wt.ActiveXObject&&"ActiveXObject"in wt,WP=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ilt=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=wt[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=Nt(u[m]);oi(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!Te(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!Te(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!Te(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(qC(t,!Fe(a)||!(o||u.forEach&&!ke(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),t6.enable();else if(qC(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ke(function(){f.has(1)}),v=function(m,y){if(!jP)return!1;var g=!1;try{var w={};w[NP]=function(){return{next:function(){return{done:g=!0}}}},function(E){new a(E)}(w)}catch{}return g}(),h=!o&&ke(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){PP(m,u);var g=function(w,E,x){var D,S;return Av&&Fe(D=E.constructor)&&D!==x&&Te(S=D.prototype)&&S!==x.prototype&&Av(w,S),w}(new a,m,s);return y!=null&&TP(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,la({global:!0,forced:s!=a},l),$C(s,t),o||r.setStrong(s,t,n),s}("WeakMap",WP,UP);if(uP&&olt){Vd=UP.getConstructor(WP,"WeakMap",!0),t6.enable();var zd=ilt.prototype,GP=Nt(zd.delete),Pv=Nt(zd.has),qP=Nt(zd.get),KP=Nt(zd.set);QC(zd,{delete:function(t){if(Te(t)&&!Gu(t)){var e=Tv(this);return e.frozen||(e.frozen=new Vd),GP(this,t)||e.frozen.delete(t)}return GP(this,t)},has:function(t){if(Te(t)&&!Gu(t)){var e=Tv(this);return e.frozen||(e.frozen=new Vd),Pv(this,t)||e.frozen.has(t)}return Pv(this,t)},get:function(t){if(Te(t)&&!Gu(t)){var e=Tv(this);return e.frozen||(e.frozen=new Vd),Pv(this,t)?qP(this,t):e.frozen.get(t)}return qP(this,t)},set:function(t,e){if(Te(t)&&!Gu(t)){var r=Tv(this);r.frozen||(r.frozen=new Vd),Pv(this,t)?KP(this,t,e):r.frozen.set(t,e)}else KP(this,t,e);return this}})}var YP={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},u6=TC("span").classList,XP=u6&&u6.constructor&&u6.constructor.prototype,alt=XP===Object.prototype?void 0:XP,s6=vr("iterator"),$P=vr("toStringTag"),l6=Rd.values,ZP=function(t,e){if(t){if(t[s6]!==l6)try{sa(t,s6,l6)}catch{t[s6]=l6}if(t[$P]||sa(t,$P,e),YP[e]){for(var r in Rd)if(t[r]!==Rd[r])try{sa(t,r,Rd[r])}catch{t[r]=Rd[r]}}}};for(var c6 in YP)ZP(wt[c6]&&wt[c6].prototype,c6);ZP(alt,"DOMTokenList");var f6=new WeakMap,ult={type:"list-item",renderElem:function(t,e,r){f6.set(t,r);var n=t,o=n.level,i=o===void 0?0:o,a=n.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,d){var p=d,v=p.type,h=p.level,m=h===void 0?0:h,y=p.ordered,g=y!==void 0&&y;if(!g)return-1;var w=1,E=d,x=O.findPath(f,E);if(x[0]===0)return 1;for(;x[0]>0;){var D=I.previous(x),S=C.node(f,D);if(S==null)break;var k=S[0],F=k.level,H=F===void 0?0:F,G=k.type,j=k.ordered;if(G!==v||H<m)break;if(H===m){if(j!==g)break;w++}E=k,x=D}return w}(r,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var h=0;h<v&&!d;h++){var m=p[h];it.isText(m)&&(d=m)}return d==null?"":d.color||""}(t);return bt("div",{style:u},bt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),bt("span",null,e))}},d6=function(t,e){return d6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},d6(t,e);/*! *****************************************************************************
109
+ Copyright (c) Microsoft Corporation.
110
+
111
+ Permission to use, copy, modify, and/or distribute this software for any
112
+ purpose with or without fee is hereby granted.
113
+
114
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
115
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
116
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
117
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
118
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
119
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
120
+ PERFORMANCE OF THIS SOFTWARE.
121
+ ***************************************************************************** */};function JP(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}d6(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function QP(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hd(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function tN(t){return C.nodes(t,{at:t.selection||void 0,match:function(e){return O.findPath(t,e).length===1}})}var slt=QT.includes;la({target:"Array",proto:!0},{includes:function(t){return slt(this,t,arguments.length>1?arguments[1]:void 0)}}),Nd("includes");var eN,p6,llt=function(){var t=qr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},h6=wt.RegExp,rN=ke(function(){var t=h6("a","y");return t.lastIndex=2,t.exec("abcd")!=null});rN||ke(function(){return!h6("a","y").sticky});var clt={BROKEN_CARET:rN||ke(function(){var t=h6("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},flt=wt.RegExp,dlt=ke(function(){var t=flt(".","s");return!(t.dotAll&&t.exec(`
122
+ `)&&t.flags==="s")}),plt=wt.RegExp,hlt=ke(function(){var t=plt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),glt=So.get,vlt=DC("native-string-replace",String.prototype.replace),Nv=RegExp.prototype.exec,g6=Nv,mlt=Nt("".charAt),ylt=Nt("".indexOf),blt=Nt("".replace),v6=Nt("".slice),m6=(p6=/b*/g,ar(Nv,eN=/a/,"a"),ar(Nv,p6,"a"),eN.lastIndex!==0||p6.lastIndex!==0),nN=clt.BROKEN_CARET,y6=/()??/.exec("")[1]!==void 0;(m6||y6||nN||dlt||hlt)&&(g6=function(t){var e,r,n,o,i,a,u,s=this,l=glt(s),c=ii(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ar(g6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=nN&&s.sticky,v=ar(llt,s),h=s.source,m=0,y=c;if(p&&(v=blt(v,"y",""),ylt(v,"g")===-1&&(v+="g"),y=v6(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&mlt(c,s.lastIndex-1)!==`
123
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),y6&&(r=new RegExp("^"+h+"$(?!\\s)",v)),m6&&(n=s.lastIndex),o=ar(Nv,p?r:s,y),p?o?(o.input=v6(o.input,m),o[0]=v6(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:m6&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),y6&&o&&o.length>1&&ar(vlt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=VC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var jv=g6;la({target:"RegExp",proto:!0,forced:/./.exec!==jv},{exec:jv});var oN=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var r=this.type;return O.getSelectedNodeByType(e,r)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var r=this.getListNode(e);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!O.getSelectedElems(e).some(function(r){if(C.isVoid(e,r)&&C.isBlock(e,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},t.prototype.exec=function(e,r){this.isActive(e)?R.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):R.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),wlt='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',Elt='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',Clt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!1,r.title=tt("listModule.unOrderedList"),r.iconSvg=wlt,r}return JP(e,t),e}(oN),xlt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!0,r.title=tt("listModule.orderedList"),r.iconSvg=Elt,r}return JP(e,t),e}(oN),Slt={key:"bulletedList",factory:function(){return new Clt}},Dlt={key:"numberedList",factory:function(){return new xlt}},iN=[],Alt={type:"list-item",elemToHtml:function(t,e){var r="",n="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=f6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,m=h===void 0?0:h,y=O.findPath(c,l);if(y[0]===0)return m+1;var g=I.previous(y),w=C.node(c,g);if(!w)return 0;var E=Hd(w,1)[0];if(O.getNodeType(E)!==d)return m+1;var x=E,D=x.ordered,S=D!==void 0&&D,k=x.level,F=k===void 0?0:k;return F<m?m-F:F>m?0:F===m?S===v?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",iN.push(i);var s=function(l){var c=f6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,h=f.level,m=h===void 0?0:h,y=O.findPath(c,l);if(y[0]===c.children.length-1)return m+1;var g=I.next(y),w=C.node(c,g);if(!w)return 0;var E=Hd(w,1)[0];if(O.getNodeType(E)!==d)return m+1;var x=E,D=x.ordered,S=D!==void 0&&D,k=x.level,F=k===void 0?0:k;return F<m?m-F:F>m?0:F===m?S===v?0:1:0}(t);if(s>0)for(u=0;u<s;u++)n+="</"+iN.pop()+">";return{html:"<li>"+e+"</li>",prefix:r,suffix:n}}},Olt=vr("species"),klt=i6.filter,Blt=kC>=51||!ke(function(){var t=[];return(t.constructor={})[Olt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});la({target:"Array",proto:!0,forced:!Blt},{filter:function(t){return klt(this,t,arguments.length>1?arguments[1]:void 0)}});var b6=Function.prototype,aN=b6.apply,_lt=b6.bind,uN=b6.call,Flt=typeof Reflect=="object"&&Reflect.apply||(_lt?uN.bind(aN):function(){return uN.apply(aN,arguments)}),sN=(vr("species"),RegExp.prototype),Tlt=SP.charAt,Plt=function(t,e,r){return e+(r?Tlt(t,e).length:1)},Nlt=Math.floor,w6=Nt("".charAt),jlt=Nt("".replace),E6=Nt("".slice),Ilt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Llt=/\$([$&'`]|\d{1,2})/g,Rlt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Llt;return o!==void 0&&(o=kd(o),s=Ilt),jlt(i,s,function(l,c){var f;switch(w6(c,0)){case"$":return"$";case"&":return t;case"`":return E6(e,0,r);case"'":return E6(e,a);case"<":f=o[E6(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Nlt(d/10);return p===0?l:p<=u?n[p-1]===void 0?w6(c,1):n[p-1]+w6(c,1):l}f=n[d-1]}return f===void 0?"":f})},Mlt=wt.TypeError,Vlt=function(t,e){var r=t.exec;if(Fe(r)){var n=ar(r,t,e);return n!==null&&qr(n),n}if(ni(t)==="RegExp")return ar(jv,t,e);throw Mlt("RegExp#exec called on incompatible receiver")},C6=vr("replace"),zlt=Math.max,Hlt=Math.min,Ult=Nt([].concat),x6=Nt([].push),lN=Nt("".indexOf),cN=Nt("".slice),Wlt="a".replace(/./,"$0")==="$0",fN=!!/./[C6]&&/./[C6]("a","$0")==="";(function(t,e,r,n){var o=vr(t),i=!ke(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ke(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Nt(/./[o]),s=function(l,c,f){var d=fN?"$":"$0";return[function(p,v){var h=gv(this),m=p==null?void 0:Td(p,C6);return m?ar(m,p,h,v):ar(c,ii(h),p,v)},function(p,v){var h=qr(this),m=ii(p);if(typeof v=="string"&&lN(v,d)===-1&&lN(v,"$<")===-1){var y=f(c,h,m,v);if(y.done)return y.value}var g=Fe(v);g||(v=ii(v));var w=h.global;if(w){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var D=Vlt(h,m);if(D===null||(x6(x,D),!w))break;ii(D[0])===""&&(h.lastIndex=Plt(m,ZT(h.lastIndex),E))}for(var S,k="",F=0,H=0;H<x.length;H++){for(var G=ii((D=x[H])[0]),j=zlt(Hlt(Pd(D.index),m.length),0),L=[],z=1;z<D.length;z++)x6(L,(S=D[z])===void 0?S:String(S));var K=D.groups;if(g){var X=Ult([G],L,j,m);K!==void 0&&x6(X,K);var nt=ii(Flt(v,void 0,X))}else nt=Rlt(G,m,j,L,K,v);j>=F&&(k+=cN(m,F,j)+nt,F=j+G.length)}return k+cN(m,F)}]}(0,""[t],function(l,c,f,d,p){var v=Nt(l),h=c.exec;return h===jv||h===sN.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});oi(String.prototype,t,s[0]),oi(sN,o,s[1])}})("replace",0,!!ke(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Wlt||fN);var Glt=wt.TypeError,dN=function(t,e,r,n,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&e6(a,u);f<n;){if(f in r){if(s=d?d(r[f],f,e):r[f],i>0&&r6(s))l=Nl(s),c=dN(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Glt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},qlt=dN;function S6(t){return t.length?t[0].tagName.toLowerCase():""}la({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=kd(this),r=Nl(e),n=VP(e,0);return n.length=qlt(n,e,e,r,0,t===void 0?1:Pd(t)),n}}),Nd("flat"),la({global:!0},{globalThis:wt}),mn&&(_.fn.append=mn),vn&&(_.fn.attr=vn),js&&(_.fn.parent=js);var Klt={renderElems:[ult],editorPlugin:function(t){var e=t.deleteBackward,r=t.handleTab,n=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(V.isExpanded(a))e(i);else{var u=O.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?R.setNodes(o,{level:l-1}):R.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(V.isCollapsed(l)){var c=O.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void R.setNodes(o,{level:d+1})}}if(V.isExpanded(l)){var p=0,v=!1;try{for(var h=QP(tN(o)),m=h.next();!m.done;m=h.next()){var y=Hd(m.value,1)[0];O.getNodeType(y)==="list-item"?p++:v=!0}}catch(S){i={error:S}}finally{try{m&&!m.done&&(a=h.return)&&a.call(h)}finally{if(i)throw i.error}}if(v||p<=1)return void r();try{for(var g=QP(tN(o)),w=g.next();!w.done;w=g.next()){var E=Hd(w.value,2),x=(y=E[0],E[1]),D=y.level;d=D===void 0?0:D,R.setNodes(o,{level:d+1},{at:x})}}catch(S){u={error:S}}finally{try{w&&!w.done&&(s=g.return)&&s.call(g)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(i){var a=Hd(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||R.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[Slt,Dlt],elemsToHtml:[Alt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);(e=e.filter(function(a){return!!it.isText(a)||!!r.isInline(a)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(a){return S6(a.parent())==="ol"}(n),i=function(a){for(var u=0,s=a.parent(),l=S6(s);l==="ul"||l==="ol";)l=S6(s=s.parent()),u++;return u-1}(n);return{type:"list-item",ordered:o,level:i,children:e}}}]},pN=Ma(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",h="[object Set]",m="[object String]",y="[object Symbol]",g="[object WeakMap]",w="[object ArrayBuffer]",E="[object DataView]",x=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[i]=S[w]=S[a]=S[E]=S[u]=S[s]=S[l]=S[c]=S[f]=S[d]=S[v]=S[h]=S[m]=S[g]=!1;var k=typeof ae=="object"&&ae&&ae.Object===Object&&ae,F=typeof self=="object"&&self&&self.Object===Object&&self,H=k||F||Function("return this")(),G=e&&!e.nodeType&&e,j=G&&t&&!t.nodeType&&t,L=j&&j.exports===G,z=L&&k.process,K=function(){try{return z&&z.binding&&z.binding("util")}catch{}}(),X=K&&K.isTypedArray;function nt(P,M){for(var J=-1,gt=P==null?0:P.length;++J<gt;)if(M(P[J],J,P))return!0;return!1}function lt(P){var M=-1,J=Array(P.size);return P.forEach(function(gt,re){J[++M]=[re,gt]}),J}function st(P){var M=-1,J=Array(P.size);return P.forEach(function(gt){J[++M]=gt}),J}var ut=Array.prototype,B=Function.prototype,A=Object.prototype,N=H["__core-js_shared__"],W=B.toString,$=A.hasOwnProperty,q=function(){var P=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return P?"Symbol(src)_1."+P:""}(),at=A.toString,vt=RegExp("^"+W.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=L?H.Buffer:void 0,St=H.Symbol,Y=H.Uint8Array,Rt=A.propertyIsEnumerable,kt=ut.splice,ht=St?St.toStringTag:void 0,Bt=Object.getOwnPropertySymbols,Pe=yt?yt.isBuffer:void 0,Wt=function(P,M){return function(J){return P(M(J))}}(Object.keys,Object),ee=ja(H,"DataView"),we=ja(H,"Map"),Ar=ja(H,"Promise"),Vt=ja(H,"Set"),Xr=ja(H,"WeakMap"),Jn=ja(Object,"create"),jo=gi(ee),hc=gi(we),ds=gi(Ar),Qn=gi(Vt),Io=gi(Xr),di=St?St.prototype:void 0,Or=di?di.valueOf:void 0;function kr(P){var M=-1,J=P==null?0:P.length;for(this.clear();++M<J;){var gt=P[M];this.set(gt[0],gt[1])}}function Br(P){var M=-1,J=P==null?0:P.length;for(this.clear();++M<J;){var gt=P[M];this.set(gt[0],gt[1])}}function jr(P){var M=-1,J=P==null?0:P.length;for(this.clear();++M<J;){var gt=P[M];this.set(gt[0],gt[1])}}function dr(P){var M=-1,J=P==null?0:P.length;for(this.__data__=new jr;++M<J;)this.add(P[M])}function jn(P){var M=this.__data__=new Br(P);this.size=M.size}function lh(P,M){var J=vi(P),gt=!J&&Ey(P),re=!J&&!gt&&Lo(P),It=!J&&!gt&&!re&&Mo(P),T=J||gt||re||It,U=T?function(zt,Ee){for(var fe=-1,Yt=Array(zt);++fe<zt;)Yt[fe]=Ee(fe);return Yt}(P.length,String):[],ot=U.length;for(var ct in P)!$.call(P,ct)||T&&(ct=="length"||re&&(ct=="offset"||ct=="parent")||It&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||ch(ct,ot))||U.push(ct);return U}function Na(P,M){for(var J=P.length;J--;)if(mc(P[J][0],M))return J;return-1}function pi(P){return P==null?P===void 0?"[object Undefined]":"[object Null]":ht&&ht in Object(P)?function(M){var J=$.call(M,ht),gt=M[ht];try{M[ht]=void 0;var re=!0}catch{}var It=at.call(M);return re&&(J?M[ht]=gt:delete M[ht]),It}(P):function(M){return at.call(M)}(P)}function gc(P){return Ia(P)&&pi(P)==o}function ps(P,M,J,gt,re){return P===M||(P==null||M==null||!Ia(P)&&!Ia(M)?P!=P&&M!=M:function(It,T,U,ot,ct,zt){var Ee=vi(It),fe=vi(T),Yt=Ee?i:hn(It),nr=fe?i:hn(T),_r=(Yt=Yt==o?d:Yt)==d,hs=(nr=nr==o?d:nr)==d,mi=Yt==nr;if(mi&&Lo(It)){if(!Lo(T))return!1;Ee=!0,_r=!1}if(mi&&!_r)return zt||(zt=new jn),Ee||Mo(It)?In(It,T,U,ot,ct,zt):function(Mt,Xt,$t,Ne,Ir,$r,ro){switch($t){case E:if(Mt.byteLength!=Xt.byteLength||Mt.byteOffset!=Xt.byteOffset)return!1;Mt=Mt.buffer,Xt=Xt.buffer;case w:return!(Mt.byteLength!=Xt.byteLength||!$r(new Y(Mt),new Y(Xt)));case a:case u:case f:return mc(+Mt,+Xt);case s:return Mt.name==Xt.name&&Mt.message==Xt.message;case v:case m:return Mt==Xt+"";case c:var Ra=lt;case h:var dh=1&Ne;if(Ra||(Ra=st),Mt.size!=Xt.size&&!dh)return!1;var Sy=ro.get(Mt);if(Sy)return Sy==Xt;Ne|=2,ro.set(Mt,Xt);var yc=In(Ra(Mt),Ra(Xt),Ne,Ir,$r,ro);return ro.delete(Mt),yc;case y:if(Or)return Or.call(Mt)==Or.call(Xt)}return!1}(It,T,Yt,U,ot,ct,zt);if(!(1&U)){var La=_r&&$.call(It,"__wrapped__"),Et=hs&&$.call(T,"__wrapped__");if(La||Et){var Jt=La?It.value():It,He=Et?T.value():T;return zt||(zt=new jn),ct(Jt,He,U,ot,zt)}}return mi?(zt||(zt=new jn),function(Mt,Xt,$t,Ne,Ir,$r){var ro=1&$t,Ra=hi(Mt),dh=Ra.length,Sy=hi(Xt).length;if(dh!=Sy&&!ro)return!1;for(var yc=dh;yc--;){var gs=Ra[yc];if(!(ro?gs in Xt:$.call(Xt,gs)))return!1}var WV=$r.get(Mt);if(WV&&$r.get(Xt))return WV==Xt;var Dy=!0;$r.set(Mt,Xt),$r.set(Xt,Mt);for(var Y8=ro;++yc<dh;){var Ay=Mt[gs=Ra[yc]],Oy=Xt[gs];if(Ne)var GV=ro?Ne(Oy,Ay,gs,Xt,Mt,$r):Ne(Ay,Oy,gs,Mt,Xt,$r);if(!(GV===void 0?Ay===Oy||Ir(Ay,Oy,$t,Ne,$r):GV)){Dy=!1;break}Y8||(Y8=gs=="constructor")}if(Dy&&!Y8){var ky=Mt.constructor,By=Xt.constructor;ky==By||!("constructor"in Mt)||!("constructor"in Xt)||typeof ky=="function"&&ky instanceof ky&&typeof By=="function"&&By instanceof By||(Dy=!1)}return $r.delete(Mt),$r.delete(Xt),Dy}(It,T,U,ot,ct,zt)):!1}(P,M,J,gt,ps,re))}function vc(P){return!(!Cy(P)||function(M){return!!q&&q in M}(P))&&(fh(P)?vt:x).test(gi(P))}function to(P){if(J=(M=P)&&M.constructor,gt=typeof J=="function"&&J.prototype||A,M!==gt)return Wt(P);var M,J,gt,re=[];for(var It in Object(P))$.call(P,It)&&It!="constructor"&&re.push(It);return re}function In(P,M,J,gt,re,It){var T=1&J,U=P.length,ot=M.length;if(U!=ot&&!(T&&ot>U))return!1;var ct=It.get(P);if(ct&&It.get(M))return ct==M;var zt=-1,Ee=!0,fe=2&J?new dr:void 0;for(It.set(P,M),It.set(M,P);++zt<U;){var Yt=P[zt],nr=M[zt];if(gt)var _r=T?gt(nr,Yt,zt,M,P,It):gt(Yt,nr,zt,P,M,It);if(_r!==void 0){if(_r)continue;Ee=!1;break}if(fe){if(!nt(M,function(hs,mi){if(La=mi,!fe.has(La)&&(Yt===hs||re(Yt,hs,J,gt,It)))return fe.push(mi);var La})){Ee=!1;break}}else if(Yt!==nr&&!re(Yt,nr,J,gt,It)){Ee=!1;break}}return It.delete(P),It.delete(M),Ee}function hi(P){return function(M,J,gt){var re=J(M);return vi(M)?re:function(It,T){for(var U=-1,ot=T.length,ct=It.length;++U<ot;)It[ct+U]=T[U];return It}(re,gt(M))}(P,xy,wy)}function eo(P,M){var J,gt,re=P.__data__;return((gt=typeof(J=M))=="string"||gt=="number"||gt=="symbol"||gt=="boolean"?J!=="__proto__":J===null)?re[typeof M=="string"?"string":"hash"]:re.map}function ja(P,M){var J=function(gt,re){return gt==null?void 0:gt[re]}(P,M);return vc(J)?J:void 0}kr.prototype.clear=function(){this.__data__=Jn?Jn(null):{},this.size=0},kr.prototype.delete=function(P){var M=this.has(P)&&delete this.__data__[P];return this.size-=M?1:0,M},kr.prototype.get=function(P){var M=this.__data__;if(Jn){var J=M[P];return J===r?void 0:J}return $.call(M,P)?M[P]:void 0},kr.prototype.has=function(P){var M=this.__data__;return Jn?M[P]!==void 0:$.call(M,P)},kr.prototype.set=function(P,M){var J=this.__data__;return this.size+=this.has(P)?0:1,J[P]=Jn&&M===void 0?r:M,this},Br.prototype.clear=function(){this.__data__=[],this.size=0},Br.prototype.delete=function(P){var M=this.__data__,J=Na(M,P);return!(J<0)&&(J==M.length-1?M.pop():kt.call(M,J,1),--this.size,!0)},Br.prototype.get=function(P){var M=this.__data__,J=Na(M,P);return J<0?void 0:M[J][1]},Br.prototype.has=function(P){return Na(this.__data__,P)>-1},Br.prototype.set=function(P,M){var J=this.__data__,gt=Na(J,P);return gt<0?(++this.size,J.push([P,M])):J[gt][1]=M,this},jr.prototype.clear=function(){this.size=0,this.__data__={hash:new kr,map:new(we||Br),string:new kr}},jr.prototype.delete=function(P){var M=eo(this,P).delete(P);return this.size-=M?1:0,M},jr.prototype.get=function(P){return eo(this,P).get(P)},jr.prototype.has=function(P){return eo(this,P).has(P)},jr.prototype.set=function(P,M){var J=eo(this,P),gt=J.size;return J.set(P,M),this.size+=J.size==gt?0:1,this},dr.prototype.add=dr.prototype.push=function(P){return this.__data__.set(P,r),this},dr.prototype.has=function(P){return this.__data__.has(P)},jn.prototype.clear=function(){this.__data__=new Br,this.size=0},jn.prototype.delete=function(P){var M=this.__data__,J=M.delete(P);return this.size=M.size,J},jn.prototype.get=function(P){return this.__data__.get(P)},jn.prototype.has=function(P){return this.__data__.has(P)},jn.prototype.set=function(P,M){var J=this.__data__;if(J instanceof Br){var gt=J.__data__;if(!we||gt.length<199)return gt.push([P,M]),this.size=++J.size,this;J=this.__data__=new jr(gt)}return J.set(P,M),this.size=J.size,this};var wy=Bt?function(P){return P==null?[]:(P=Object(P),function(M,J){for(var gt=-1,re=M==null?0:M.length,It=0,T=[];++gt<re;){var U=M[gt];J(U,gt,M)&&(T[It++]=U)}return T}(Bt(P),function(M){return Rt.call(P,M)}))}:function(){return[]},hn=pi;function ch(P,M){return!!(M=M??n)&&(typeof P=="number"||D.test(P))&&P>-1&&P%1==0&&P<M}function gi(P){if(P!=null){try{return W.call(P)}catch{}try{return P+""}catch{}}return""}function mc(P,M){return P===M||P!=P&&M!=M}(ee&&hn(new ee(new ArrayBuffer(1)))!=E||we&&hn(new we)!=c||Ar&&hn(Ar.resolve())!=p||Vt&&hn(new Vt)!=h||Xr&&hn(new Xr)!=g)&&(hn=function(P){var M=pi(P),J=M==d?P.constructor:void 0,gt=J?gi(J):"";if(gt)switch(gt){case jo:return E;case hc:return c;case ds:return p;case Qn:return h;case Io:return g}return M});var Ey=gc(function(){return arguments}())?gc:function(P){return Ia(P)&&$.call(P,"callee")&&!Rt.call(P,"callee")},vi=Array.isArray,Lo=Pe||function(){return!1};function fh(P){if(!Cy(P))return!1;var M=pi(P);return M==l||M=="[object GeneratorFunction]"||M=="[object AsyncFunction]"||M=="[object Proxy]"}function Ro(P){return typeof P=="number"&&P>-1&&P%1==0&&P<=n}function Cy(P){var M=typeof P;return P!=null&&(M=="object"||M=="function")}function Ia(P){return P!=null&&typeof P=="object"}var Mo=X?function(P){return function(M){return P(M)}}(X):function(P){return Ia(P)&&Ro(P.length)&&!!S[pi(P)]};function xy(P){return(M=P)!=null&&Ro(M.length)&&!fh(M)?lh(P):to(P);var M}t.exports=function(P,M){return ps(P,M)}});Ur("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Ur("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var hN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gN(t){var e={exports:{}};return t(e,e.exports),e.exports}var ca,Iv,Lv=function(t){return t&&t.Math==Math&&t},Tt=Lv(typeof globalThis=="object"&&globalThis)||Lv(typeof window=="object"&&window)||Lv(typeof self=="object"&&self)||Lv(typeof hN=="object"&&hN)||function(){return this}()||Function("return this")(),Xe=function(t){try{return!!t()}catch{return!0}},fa=!Xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ud=Function.prototype.call,rr=Ud.bind?Ud.bind(Ud):function(){return Ud.apply(Ud,arguments)},vN={}.propertyIsEnumerable,mN=Object.getOwnPropertyDescriptor,Ylt={f:mN&&!vN.call({1:2},1)?function(t){var e=mN(this,t);return!!e&&e.enumerable}:vN},D6=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},yN=Function.prototype,A6=yN.bind,O6=yN.call,Xlt=A6&&A6.bind(O6),Lt=A6?function(t){return t&&Xlt(O6,t)}:function(t){return t&&function(){return O6.apply(t,arguments)}},$lt=Lt({}.toString),Zlt=Lt("".slice),da=function(t){return Zlt($lt(t),8,-1)},k6=Tt.Object,Jlt=Lt("".split),bN=Xe(function(){return!k6("z").propertyIsEnumerable(0)})?function(t){return da(t)=="String"?Jlt(t,""):k6(t)}:k6,Qlt=Tt.TypeError,pa=function(t){if(t==null)throw Qlt("Can't call method on "+t);return t},Wd=function(t){return bN(pa(t))},Sr=function(t){return typeof t=="function"},Do=function(t){return typeof t=="object"?t!==null:Sr(t)},tct=function(t){return Sr(t)?t:void 0},Gd=function(t,e){return arguments.length<2?tct(Tt[t]):Tt[t]&&Tt[t][e]},wN=Lt({}.isPrototypeOf),B6=Gd("navigator","userAgent")||"",EN=Tt.process,CN=Tt.Deno,xN=EN&&EN.versions||CN&&CN.version,SN=xN&&xN.v8;SN&&(Iv=(ca=SN.split("."))[0]>0&&ca[0]<4?1:+(ca[0]+ca[1])),!Iv&&B6&&(!(ca=B6.match(/Edge\/(\d+)/))||ca[1]>=74)&&(ca=B6.match(/Chrome\/(\d+)/))&&(Iv=+ca[1]);var _6=Iv,F6=!!Object.getOwnPropertySymbols&&!Xe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_6&&_6<41}),T6=F6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ect=Tt.Object,P6=T6?function(t){return typeof t=="symbol"}:function(t){var e=Gd("Symbol");return Sr(e)&&wN(e.prototype,ect(t))},rct=Tt.String,DN=function(t){try{return rct(t)}catch{return"Object"}},nct=Tt.TypeError,AN=function(t){if(Sr(t))return t;throw nct(DN(t)+" is not a function")},N6=function(t,e){var r=t[e];return r==null?void 0:AN(r)},oct=Tt.TypeError,ict=Object.defineProperty,j6=function(t,e){try{ict(Tt,t,{value:e,configurable:!0,writable:!0})}catch{Tt[t]=e}return e},ha=Tt["__core-js_shared__"]||j6("__core-js_shared__",{}),I6=gN(function(t){(t.exports=function(e,r){return ha[e]||(ha[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),act=Tt.Object,L6=function(t){return act(pa(t))},uct=Lt({}.hasOwnProperty),kn=Object.hasOwn||function(t,e){return uct(L6(t),e)},sct=0,lct=Math.random(),cct=Lt(1 .toString),ON=function(t){return"Symbol("+(t===void 0?"":t)+")_"+cct(++sct+lct,36)},qd=I6("wks"),qu=Tt.Symbol,kN=qu&&qu.for,fct=T6?qu:qu&&qu.withoutSetter||ON,Bn=function(t){if(!kn(qd,t)||!F6&&typeof qd[t]!="string"){var e="Symbol."+t;F6&&kn(qu,t)?qd[t]=qu[t]:qd[t]=T6&&kN?kN(e):fct(e)}return qd[t]},dct=Tt.TypeError,pct=Bn("toPrimitive"),R6=function(t){var e=function(r,n){if(!Do(r)||P6(r))return r;var o,i=N6(r,pct);if(i){if(o=rr(i,r,n),!Do(o)||P6(o))return o;throw dct("Can't convert object to primitive value")}return function(a,u){var s,l;if(Sr(s=a.toString)&&!Do(l=rr(s,a))||Sr(s=a.valueOf)&&!Do(l=rr(s,a)))return l;throw oct("Can't convert object to primitive value")}(r)}(t,"string");return P6(e)?e:e+""},M6=Tt.document,hct=Do(M6)&&Do(M6.createElement),V6=function(t){return hct?M6.createElement(t):{}},BN=!fa&&!Xe(function(){return Object.defineProperty(V6("div"),"a",{get:function(){return 7}}).a!=7}),_N=Object.getOwnPropertyDescriptor,FN={f:fa?_N:function(t,e){if(t=Wd(t),e=R6(e),BN)try{return _N(t,e)}catch{}if(kn(t,e))return D6(!rr(Ylt.f,t,e),t[e])}},gct=Tt.String,vct=Tt.TypeError,_n=function(t){if(Do(t))return t;throw vct(gct(t)+" is not an object")},mct=Tt.TypeError,TN=Object.defineProperty,Kd={f:fa?TN:function(t,e,r){if(_n(t),e=R6(e),_n(r),BN)try{return TN(t,e,r)}catch{}if("get"in r||"set"in r)throw mct("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Ll=fa?function(t,e,r){return Kd.f(t,e,D6(1,r))}:function(t,e,r){return t[e]=r,t},yct=Lt(Function.toString);Sr(ha.inspectSource)||(ha.inspectSource=function(t){return yct(t)});var z6,Rv,H6,U6=ha.inspectSource,PN=Tt.WeakMap,bct=Sr(PN)&&/native code/.test(U6(PN)),NN=I6("keys"),jN=function(t){return NN[t]||(NN[t]=ON(t))},W6={},IN=Tt.TypeError,wct=Tt.WeakMap;if(bct||ha.state){var Ku=ha.state||(ha.state=new wct),Ect=Lt(Ku.get),LN=Lt(Ku.has),Cct=Lt(Ku.set);z6=function(t,e){if(LN(Ku,t))throw new IN("Object already initialized");return e.facade=t,Cct(Ku,t,e),e},Rv=function(t){return Ect(Ku,t)||{}},H6=function(t){return LN(Ku,t)}}else{var Rl=jN("state");W6[Rl]=!0,z6=function(t,e){if(kn(t,Rl))throw new IN("Object already initialized");return e.facade=t,Ll(t,Rl,e),e},Rv=function(t){return kn(t,Rl)?t[Rl]:{}},H6=function(t){return kn(t,Rl)}}var G6={get:Rv,enforce:function(t){return H6(t)?Rv(t):z6(t,{})}},RN=Function.prototype,xct=fa&&Object.getOwnPropertyDescriptor,MN=kn(RN,"name"),q6={PROPER:MN&&(function(){}).name==="something",CONFIGURABLE:MN&&(!fa||fa&&xct(RN,"name").configurable)},Yd=gN(function(t){var e=q6.CONFIGURABLE,r=G6.get,n=G6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Sr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!kn(u,"name")||e&&u.name!==p)&&Ll(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Tt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ll(i,a,u)):f?i[a]=u:j6(a,u)})(Function.prototype,"toString",function(){return Sr(this)&&r(this).source||U6(this)})}),Sct=Math.ceil,Dct=Math.floor,Mv=function(t){var e=+t;return e!=e||e===0?0:(e>0?Dct:Sct)(e)},Act=Math.max,Oct=Math.min,Xd=function(t,e){var r=Mv(t);return r<0?Act(r+e,0):Oct(r,e)},kct=Math.min,K6=function(t){return t>0?kct(Mv(t),9007199254740991):0},Vv=function(t){return K6(t.length)},Bct=function(t){return function(e,r,n){var o,i=Wd(e),a=Vv(i),u=Xd(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},_ct=Bct(!1),VN=Lt([].push),zN=function(t,e){var r,n=Wd(t),o=0,i=[];for(r in n)!kn(W6,r)&&kn(n,r)&&VN(i,r);for(;e.length>o;)kn(n,r=e[o++])&&(~_ct(i,r)||VN(i,r));return i},zv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fct=zv.concat("length","prototype"),Tct={f:Object.getOwnPropertyNames||function(t){return zN(t,Fct)}},Pct={f:Object.getOwnPropertySymbols},Nct=Lt([].concat),jct=Gd("Reflect","ownKeys")||function(t){var e=Tct.f(_n(t)),r=Pct.f;return r?Nct(e,r(t)):e},Ict=function(t,e){for(var r=jct(e),n=Kd.f,o=FN.f,i=0;i<r.length;i++){var a=r[i];kn(t,a)||n(t,a,o(e,a))}},Lct=/#|\.prototype\./,$d=function(t,e){var r=Mct[Rct(t)];return r==zct||r!=Vct&&(Sr(e)?Xe(e):!!e)},Rct=$d.normalize=function(t){return String(t).replace(Lct,".").toLowerCase()},Mct=$d.data={},Vct=$d.NATIVE="N",zct=$d.POLYFILL="P",Hct=$d,Uct=FN.f,ga=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Tt:l?Tt[u]||j6(u,{}):(Tt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Uct(r,n))&&a.value:r[n],!Hct(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ict(i,o)}(t.sham||o&&o.sham)&&Ll(i,"sham",!0),Yd(r,n,i,t)}},HN={};HN[Bn("toStringTag")]="z";var Y6=String(HN)==="[object z]",Wct=Bn("toStringTag"),Gct=Tt.Object,qct=da(function(){return arguments}())=="Arguments",X6=Y6?da:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Gct(t),Wct))=="string"?r:qct?da(e):(n=da(e))=="Object"&&Sr(e.callee)?"Arguments":n},Kct=Tt.String,Dr=function(t){if(X6(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Kct(t)},Yct=/"/g,Xct=Lt("".replace);ga({target:"String",proto:!0,forced:Xe(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=Dr(pa(this)),n="<a",(n+=' name="'+Xct(Dr(e),Yct,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var Hv,UN=function(){var t=_n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},$6=Tt.RegExp,Z6=Xe(function(){var t=$6("a","y");return t.lastIndex=2,t.exec("abcd")!=null});Z6||Xe(function(){return!$6("a","y").sticky});var WN={BROKEN_CARET:Z6||Xe(function(){var t=$6("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:Z6},$ct=Object.keys||function(t){return zN(t,zv)},Zct=fa?Object.defineProperties:function(t,e){_n(t);for(var r,n=Wd(e),o=$ct(e),i=o.length,a=0;i>a;)Kd.f(t,r=o[a++],n[r]);return t},Jct=Gd("document","documentElement"),GN=jN("IE_PROTO"),J6=function(){},qN=function(t){return"<script>"+t+"<\/script>"},KN=function(t){t.write(qN("")),t.close();var e=t.parentWindow.Object;return t=null,e},Uv=function(){try{Hv=new ActiveXObject("htmlfile")}catch{}var t,e;Uv=typeof document<"u"?document.domain&&Hv?KN(Hv):((e=V6("iframe")).style.display="none",Jct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(qN("document.F=Object")),t.close(),t.F):KN(Hv);for(var r=zv.length;r--;)delete Uv.prototype[zv[r]];return Uv()};W6[GN]=!0;var YN,Q6,XN=Object.create||function(t,e){var r;return t!==null?(J6.prototype=_n(t),r=new J6,J6.prototype=null,r[GN]=t):r=Uv(),e===void 0?r:Zct(r,e)},Qct=Tt.RegExp,tft=Xe(function(){var t=Qct(".","s");return!(t.dotAll&&t.exec(`
124
+ `)&&t.flags==="s")}),eft=Tt.RegExp,rft=Xe(function(){var t=eft("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),nft=G6.get,oft=I6("native-string-replace",String.prototype.replace),Wv=RegExp.prototype.exec,tx=Wv,ift=Lt("".charAt),aft=Lt("".indexOf),uft=Lt("".replace),ex=Lt("".slice),rx=(Q6=/b*/g,rr(Wv,YN=/a/,"a"),rr(Wv,Q6,"a"),YN.lastIndex!==0||Q6.lastIndex!==0),$N=WN.BROKEN_CARET,nx=/()??/.exec("")[1]!==void 0;(rx||nx||$N||tft||rft)&&(tx=function(t){var e,r,n,o,i,a,u,s=this,l=nft(s),c=Dr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=rr(tx,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=$N&&s.sticky,v=rr(UN,s),h=s.source,m=0,y=c;if(p&&(v=uft(v,"y",""),aft(v,"g")===-1&&(v+="g"),y=ex(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&ift(c,s.lastIndex-1)!==`
125
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),nx&&(r=new RegExp("^"+h+"$(?!\\s)",v)),rx&&(n=s.lastIndex),o=rr(Wv,p?r:s,y),p?o?(o.input=ex(o.input,m),o[0]=ex(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:rx&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),nx&&o&&o.length>1&&rr(oft,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=XN(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Zd=tx;ga({target:"RegExp",proto:!0,forced:/./.exec!==Zd},{exec:Zd});var Gv=Array.isArray||function(t){return da(t)=="Array"},ZN=function(){},sft=[],JN=Gd("Reflect","construct"),ox=/^\s*(?:class|function)\b/,lft=Lt(ox.exec),cft=!ox.exec(ZN),Jd=function(t){if(!Sr(t))return!1;try{return JN(ZN,sft,t),!0}catch{return!1}},ix=!JN||Xe(function(){var t;return Jd(Jd.call)||!Jd(Object)||!Jd(function(){t=!0})||t})?function(t){if(!Sr(t))return!1;switch(X6(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cft||!!lft(ox,U6(t))}:Jd,QN=function(t,e,r){var n=R6(e);n in t?Kd.f(t,n,D6(0,r)):t[n]=r},fft=Bn("species"),ax=function(t){return _6>=51||!Xe(function(){var e=[];return(e.constructor={})[fft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},dft=Lt([].slice),pft=ax("slice"),hft=Bn("species"),ux=Tt.Array,gft=Math.max;function Xn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function tj(t){var e=t.selection;if(e==null)return!1;var r=Xn(C.nodes(t,{match:function(i){return O.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Xn(r,2)[1],o=C.start(t,n);if(_t.equals(e.anchor,o))return!0}return!1}function ej(t,e){var r,n,o=C.nodes(t,{at:e,match:function(s){return O.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}ga({target:"Array",proto:!0,forced:!pft},{slice:function(t,e){var r,n,o,i=Wd(this),a=Vv(i),u=Xd(t,a),s=Xd(e===void 0?a:e,a);if(Gv(i)&&(r=i.constructor,(ix(r)&&(r===ux||Gv(r.prototype))||Do(r)&&(r=r[hft])===null)&&(r=void 0),r===ux||r===void 0))return dft(i,u,s);for(n=new(r===void 0?ux:r)(gft(s-u,0)),o=0;u<s;u++,o++)u in i&&QN(n,o,i[u]);return n.length=o,n}});var rj=Lt(Lt.bind),vft=Bn("species"),nj=Tt.Array,mft=function(t,e){return new(function(r){var n;return Gv(r)&&(n=r.constructor,(ix(n)&&(n===nj||Gv(n.prototype))||Do(n)&&(n=n[vft])===null)&&(n=void 0)),n===void 0?nj:n}(t))(e===0?0:e)},oj=Lt([].push),qv=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=L6(s),h=bN(v),m=function(x,D){return AN(x),D===void 0?x:rj?rj(x,D):function(){return x.apply(D,arguments)}}(l,c),y=Vv(h),g=0,w=f||mft,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:oj(E,d)}else switch(t){case 4:return!1;case 7:oj(E,d)}return i?-1:n||o?o:E}},Kv={forEach:qv(0),map:qv(1),filter:qv(2),find:qv(5)},yft=Kv.map;ga({target:"Array",proto:!0,forced:!ax("map")},{map:function(t){return yft(this,t,arguments.length>1?arguments[1]:void 0)}});var bft=Y6?{}.toString:function(){return"[object "+X6(this)+"]"};function Yv(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function ij(t){return Yv(t).every(function(e){return!!e.isHeader})}Y6||Yd(Object.prototype,"toString",bft,{unsafe:!0});var wft=q6.PROPER,sx=RegExp.prototype,aj=sx.toString,Eft=Lt(UN),Cft=Xe(function(){return aj.call({source:"a",flags:"b"})!="/a/b"}),xft=wft&&aj.name!="toString";(Cft||xft)&&Yd(RegExp.prototype,"toString",function(){var t=_n(this),e=Dr(t.source),r=t.flags;return"/"+e+"/"+Dr(r===void 0&&wN(sx,t)&&!("flags"in sx)?Eft(t):r)},{unsafe:!0});var lx=Bn("unscopables"),cx=Array.prototype;cx[lx]==null&&Kd.f(cx,lx,{configurable:!0,value:XN(null)});var Sft=Kv.find,uj=!0;"find"in[]&&Array(1).find(function(){uj=!1}),ga({target:"Array",proto:!0,forced:uj},{find:function(t){return Sft(this,t,arguments.length>1?arguments[1]:void 0)}}),cx[lx].find=!0;var fx=Function.prototype,sj=fx.apply,Dft=fx.bind,lj=fx.call,cj=typeof Reflect=="object"&&Reflect.apply||(Dft?lj.bind(sj):function(){return lj.apply(sj,arguments)}),Aft=Bn("species"),dx=RegExp.prototype,fj=function(t,e,r,n){var o=Bn(t),i=!Xe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Xe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Aft]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Lt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=Lt(l),h=c.exec;return h===Zd||h===dx.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Yd(String.prototype,t,s[0]),Yd(dx,o,s[1])}n&&Ll(dx[o],"sham",!0)},Oft=Bn("match"),kft=Tt.TypeError,Bft=Bn("species"),_ft=Lt("".charAt),dj=Lt("".charCodeAt),Fft=Lt("".slice),Tft=function(t){return function(e,r){var n,o,i=Dr(pa(e)),a=Mv(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=dj(i,a))<55296||n>56319||a+1===u||(o=dj(i,a+1))<56320||o>57343?t?_ft(i,a):n:t?Fft(i,a,a+2):o-56320+(n-55296<<10)+65536}},Pft=Tft(!0),pj=function(t,e,r){return e+(r?Pft(t,e).length:1)},Nft=Tt.Array,jft=Math.max,hj=function(t,e,r){for(var n=Vv(t),o=Xd(e,n),i=Xd(r===void 0?n:r,n),a=Nft(jft(i-o,0)),u=0;o<i;o++,u++)QN(a,u,t[o]);return a.length=u,a},Ift=Tt.TypeError,px=function(t,e){var r=t.exec;if(Sr(r)){var n=rr(r,t,e);return n!==null&&_n(n),n}if(da(t)==="RegExp")return rr(Zd,t,e);throw Ift("RegExp#exec called on incompatible receiver")},Ml=WN.UNSUPPORTED_Y,Lft=Math.min,gj=[].push,Rft=Lt(/./.exec),Vl=Lt(gj),Qd=Lt("".slice);fj("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Dr(pa(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Do(a=o)||!((u=a[Oft])!==void 0?u:da(a)=="RegExp"))return rr(e,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,m=new RegExp(o.source,v+"g");(c=rr(Zd,m,s))&&!((f=m.lastIndex)>h&&(Vl(p,Qd(s,h,c.index)),c.length>1&&c.index<s.length&&cj(gj,p,hj(c,1)),d=c[0].length,h=f,p.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return h===s.length?!d&&Rft(m,"")||Vl(p,""):Vl(p,Qd(s,h)),p.length>l?hj(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:rr(e,this,o,i)}:e,[function(o,i){var a=pa(this),u=o==null?void 0:N6(o,t);return u?rr(u,o,a,i):rr(n,Dr(a),o,i)},function(o,i){var a=_n(this),u=Dr(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(E,x){var D,S=_n(E).constructor;return S===void 0||(D=_n(S)[Bft])==null?x:function(k){if(ix(k))return k;throw kft(DN(k)+" is not a constructor")}(D)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ml?"g":"y"),d=new l(Ml?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return px(d,u)===null?[u]:[];for(var v=0,h=0,m=[];h<u.length;){d.lastIndex=Ml?0:h;var y,g=px(d,Ml?Qd(u,h):u);if(g===null||(y=Lft(K6(d.lastIndex+(Ml?h:0)),u.length))===v)h=pj(u,h,c);else{if(Vl(m,Qd(u,v,h)),m.length===p)return m;for(var w=1;w<=g.length-1;w++)if(Vl(m,g[w]),m.length===p)return m;h=v=y}}return Vl(m,Qd(u,v)),m}]},!!Xe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ml);var hx=`
126
+ \v\f\r                 \u2028\u2029\uFEFF`,vj=Lt("".replace),Xv="["+hx+"]",Mft=RegExp("^"+Xv+Xv+"*"),Vft=RegExp(Xv+Xv+"*$"),zft=function(t){return function(e){var r=Dr(pa(e));return 1&t&&(r=vj(r,Mft,"")),2&t&&(r=vj(r,Vft,"")),r}},Hft={trim:zft(3)},Uft=q6.PROPER,Wft=Hft.trim;function mj(t){return t.length?t[0].tagName.toLowerCase():""}ga({target:"String",proto:!0,forced:function(t){return Xe(function(){return!!hx[t]()||"​…᠎"[t]()!=="​…᠎"||Uft&&hx[t].name!==t})}("trim")},{trim:function(){return Wft(this)}}),ga({global:!0},{globalThis:Tt}),mn&&(_.fn.append=mn),co&&(_.fn.on=co),Fi&&(_.fn.focus=Fi),vn&&(_.fn.attr=vn),lo&&(_.fn.val=lo),_i&&(_.fn.html=_i),Ps&&(_.fn.dataset=Ps),_s&&(_.fn.addClass=_s),Fs&&(_.fn.removeClass=Fs),Ls&&(_.fn.children=Ls),vg&&(_.fn.each=vg),Is&&(_.fn.find=Is);var tp=!1,yj=0,bj=0,ep=null,rp=null,np=_("body");function wj(t){tp=!1,rp=null,ep=null,np.off("mousemove",Ej),np.off("mouseup",wj)}np.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),tp=!0;var r=t.clientX;yj=r;var n=e.getBoundingClientRect().width;bj=n,np.on("mousemove",Ej),np.on("mouseup",wj)}});var Ej=ou(function(t){if(tp&&rp!=null&&ep!=null){t.preventDefault();var e=t.clientX,r=bj+(e-yj);(r=Math.floor(100*r)/100)<30&&(r=30),R.setNodes(rp,{width:r.toString()},{at:ep})}},100),Gft={type:"table",renderElem:function(t,e,r){var n=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||V.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=O.findPath(u,s),p=C.start(u,d),v=C.end(u,d),h=_t.compare(c,v)<=0&&_t.compare(c,p)>=0,m=_t.compare(f,v)<=0&&_t.compare(f,p)>=0;return!!(h&&m&&I.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,t),o=t.width,i=o===void 0?"auto":o,a=bt("div",{className:"table-container","data-selected":O.isNodeSelected(r,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=O.findPath(r,t),l=C.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},bt("table",{width:i,contentEditable:n},bt("colgroup",null,Yv(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},qft={type:"table-row",renderElem:function(t,e,r){return bt("tr",null,e)}},Kft={type:"table-cell",renderElem:function(t,e,r){var n=function(d,p){var v=O.getParentNode(d,p);if(v==null)return!1;var h=O.getParentNode(d,v);return h!=null&&Yv(h).some(function(m){return m===p})}(r,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!n)return bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ou(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),h=v.left,m=v.width,y=v.top,g=v.height,w=d.clientX,E=d.clientY;tp||(w>h+m-5&&w<h+m&&E>y&&E<y+g?(p.style.cursor="col-resize",rp=r,ep=O.findPath(r,t)):tp||(p.style.cursor="auto",rp=null,ep=null))}},100)}},e);return f}},Yft={selector:"table",preParseHtml:function(t){var e=_(t);if(mj(e)!=="table")return t;var r=e.find("tbody");if(r.length===0)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},Xft=Kv.filter;ga({target:"Array",proto:!0,forced:!ax("filter")},{filter:function(t){return Xft(this,t,arguments.length>1?arguments[1]:void 0)}});var $ft=Math.floor,gx=Lt("".charAt),Zft=Lt("".replace),vx=Lt("".slice),Jft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Qft=/\$([$&'`]|\d{1,2})/g,tdt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Qft;return o!==void 0&&(o=L6(o),s=Jft),Zft(i,s,function(l,c){var f;switch(gx(c,0)){case"$":return"$";case"&":return t;case"`":return vx(e,0,r);case"'":return vx(e,a);case"<":f=o[vx(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=$ft(d/10);return p===0?l:p<=u?n[p-1]===void 0?gx(c,1):n[p-1]+gx(c,1):l}f=n[d-1]}return f===void 0?"":f})},mx=Bn("replace"),edt=Math.max,rdt=Math.min,ndt=Lt([].concat),yx=Lt([].push),Cj=Lt("".indexOf),xj=Lt("".slice),odt="a".replace(/./,"$0")==="$0",Sj=!!/./[mx]&&/./[mx]("a","$0")==="";fj("replace",function(t,e,r){var n=Sj?"$":"$0";return[function(o,i){var a=pa(this),u=o==null?void 0:N6(o,mx);return u?rr(u,o,a,i):rr(e,Dr(a),o,i)},function(o,i){var a=_n(this),u=Dr(o);if(typeof i=="string"&&Cj(i,n)===-1&&Cj(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Sr(i);l||(i=Dr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=px(a,u);if(p===null||(yx(d,p),!c))break;Dr(p[0])===""&&(a.lastIndex=pj(u,K6(a.lastIndex),f))}for(var v,h="",m=0,y=0;y<d.length;y++){for(var g=Dr((p=d[y])[0]),w=edt(rdt(Mv(p.index),u.length),0),E=[],x=1;x<p.length;x++)yx(E,(v=p[x])===void 0?v:String(v));var D=p.groups;if(l){var S=ndt([g],E,w,u);D!==void 0&&yx(S,D);var k=Dr(cj(i,void 0,S))}else k=tdt(g,u,w,E,D,i);w>=m&&(h+=xj(u,m,w)+k,m=w+g.length)}return h+xj(u,m)}]},!!Xe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!odt||Sj);var idt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t);(e=e.filter(function(u){return!!it.isText(u)||!!r.isInline(u)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:mj(n)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},adt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"table-row",children:e.filter(function(n){return O.getNodeType(n)==="table-cell"})}}},udt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=_(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u}(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return O.getNodeType(i)==="table-row"})}}},sdt=function(){function t(){this.title=tt("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||!!O.getSelectedElems(e).some(function(n){var o=O.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getPanelContentElem=function(e){var r=this;if(this.$content)return this.$content[0];for(var n=_('<div class="w-e-panel-content-table"></div>'),o=_("<span>0 &times; 0</span>"),i=_("<table></table>"),a=0;a<10;a++){for(var u=_("<tr></tr>"),s=0;s<10;s++){var l=_("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=_(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" &times; "+(v+1),i.children().each(function(h){_(h).children().each(function(m){var y=_(m),g=y.dataset(),w=g.x,E=g.y;w<=p&&E<=v?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=_(f).dataset(),p=d.x,v=d.y;r.insertTable(e,v+1,p+1)}})}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},t.prototype.insertTable=function(e,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){O.isSelectedEmptyParagraph(e)&&R.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);R.insertNodes(e,a,{mode:"highest"})}},t}(),ldt=function(){function t(){this.title=tt("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||R.removeNodes(e,{mode:"highest"})},t}(),cdt=function(){function t(){this.title=tt("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Xn(C.nodes(e,{match:function(p){return O.checkNodeType(p,"table-cell")},universal:!0}),1),o=Xn(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=I.parent(a),d=I.next(f);R.insertNodes(e,l,{at:d})}}},t}(),fdt=function(){function t(){this.title=tt("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||O.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Xn(C.nodes(e,{match:function(s){return O.checkNodeType(s,"table-row")},universal:!0}),1),o=Xn(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?R.removeNodes(e,{mode:"highest"}):R.removeNodes(e,{at:a})}},t}(),Dj={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},bx=V6("span").classList,Aj=bx&&bx.constructor&&bx.constructor.prototype,ddt=Aj===Object.prototype?void 0:Aj,pdt=Kv.forEach,hdt=function(t,e){var r=[].forEach;return!!r&&Xe(function(){r.call(null,function(){throw 1},1)})}(),wx=hdt?[].forEach:function(t){return pdt(this,t,arguments.length>1?arguments[1]:void 0)},Oj=function(t){if(t&&t.forEach!==wx)try{Ll(t,"forEach",wx)}catch{t.forEach=wx}};for(var Ex in Dj)Dj[Ex]&&Oj(Tt[Ex]&&Tt[Ex].prototype);Oj(ddt);var gdt=function(){function t(){this.title=tt("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Xn(C.nodes(e,{match:function(l){return O.checkNodeType(l,"table-cell")},universal:!0}),1),o=Xn(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i);if(u!=null){var s=O.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ft.isElement(l)&&(l.children||[]).forEach(function(f){var d=O.findPath(e,f);if(d.length===a.length&&pN(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&ij(s)&&(p.isHeader=!0),R.insertNodes(e,p,{at:d})}})})}}},t}(),vdt=function(){function t(){this.title=tt("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||O.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Xn(C.nodes(e,{match:function(c){return O.checkNodeType(c,"table-cell")},universal:!0}),1),o=Xn(n[0],2),i=o[0],a=o[1],u=O.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)R.removeNodes(e,{mode:"highest"});else{var l=O.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ft.isElement(c)&&(c.children||[]).forEach(function(f){var d=O.findPath(e,f);d.length===a.length&&pN(d.slice(-1),a.slice(-1))&&R.removeNodes(e,{at:d})})})}}},t}(),mdt=function(){function t(){this.title=tt("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var r=O.getSelectedNodeByType(e,"table");return r!=null&&ij(r)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=!r,o=O.getSelectedNodeByType(e,"table");o!=null&&Yv(o).forEach(function(i){return R.setNodes(e,{isHeader:n},{at:O.findPath(e,i)})})}},t}(),ydt=function(){function t(){this.title=tt("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var r=O.getSelectedNodeByType(e,"table");return r!=null&&r.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||O.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n={width:r?"auto":"100%"};R.setNodes(e,n,{mode:"highest"})}},t}(),bdt={renderElems:[Gft,qft,Kft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var r=t.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Yft],parseElemsHtml:[idt,adt,udt],menus:[{key:"insertTable",factory:function(){return new sdt}},{key:"deleteTable",factory:function(){return new ldt}},{key:"insertTableRow",factory:function(){return new cdt}},{key:"deleteTableRow",factory:function(){return new fdt}},{key:"insertTableCol",factory:function(){return new gdt}},{key:"deleteTableCol",factory:function(){return new vdt}},{key:"tableHeader",factory:function(){return new mdt}},{key:"tableFullWidth",factory:function(){return new ydt}}],editorPlugin:function(t){var e=t.insertBreak,r=t.deleteBackward,n=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){O.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
127
+ `)},s.deleteBackward=function(l){if(!tj(s)){var c=s.selection;if(c){var f=C.before(s,c);if(f){var d=ej(s,f),p=ej(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(O.getSelectedNodeByType(s,"table")){var c=C.above(t);O.checkNodeType(c[0],"table-cell")&&R.select(t,c[1]);var f=C.next(t);if(f)f[0]&&f[0].text&&(f=(l=C.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),R.select(t,f[1]);else{var d=s.children||[],p=d.length;if(O.checkNodeType(d[p-1],"table")){var v=O.genEmptyParagraph();R.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){tj(s)||n(l)},s.normalizeNode=function(l){var c=Xn(l,2),f=c[0],d=c[1];if(O.getNodeType(f)!=="table")return o([f,d]);if(O.isLastNode(s,f)){var p=O.genEmptyParagraph();R.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(O.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
128
+ `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):C.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=O.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(I.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Q.string(c).length!==0){var p=O.findPath(s,c),v={anchor:C.start(s,p),focus:C.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};Ur("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Ur("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
129
+ Copyright (c) Microsoft Corporation.
130
+
131
+ Permission to use, copy, modify, and/or distribute this software for any
132
+ purpose with or without fee is hereby granted.
133
+
134
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
135
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
136
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
137
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
138
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
139
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
140
+ PERFORMANCE OF THIS SOFTWARE.
141
+ ***************************************************************************** */var $v=function(){return $v=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$v.apply(this,arguments)};function Zv(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function Jv(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Yu(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function wdt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var kj=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cx(t){var e={exports:{}};return t(e,e.exports),e.exports}var va,Qv,tm=function(t){return t&&t.Math==Math&&t},rt=tm(typeof globalThis=="object"&&globalThis)||tm(typeof window=="object"&&window)||tm(typeof self=="object"&&self)||tm(typeof kj=="object"&&kj)||function(){return this}()||Function("return this")(),le=function(t){try{return!!t()}catch{return!0}},Ao=!le(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),op=Function.prototype.call,ce=op.bind?op.bind(op):function(){return op.apply(op,arguments)},Bj={}.propertyIsEnumerable,_j=Object.getOwnPropertyDescriptor,Edt={f:_j&&!Bj.call({1:2},1)?function(t){var e=_j(this,t);return!!e&&e.enumerable}:Bj},em=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Fj=Function.prototype,xx=Fj.bind,Sx=Fj.call,Cdt=xx&&xx.bind(Sx),xt=xx?function(t){return t&&Cdt(Sx,t)}:function(t){return t&&function(){return Sx.apply(t,arguments)}},xdt=xt({}.toString),Sdt=xt("".slice),Oo=function(t){return Sdt(xdt(t),8,-1)},Dx=rt.Object,Ddt=xt("".split),Ax=le(function(){return!Dx("z").propertyIsEnumerable(0)})?function(t){return Oo(t)=="String"?Ddt(t,""):Dx(t)}:Dx,Adt=rt.TypeError,ip=function(t){if(t==null)throw Adt("Can't call method on "+t);return t},ma=function(t){return Ax(ip(t))},ie=function(t){return typeof t=="function"},be=function(t){return typeof t=="object"?t!==null:ie(t)},Odt=function(t){return ie(t)?t:void 0},Xu=function(t,e){return arguments.length<2?Odt(rt[t]):rt[t]&&rt[t][e]},ap=xt({}.isPrototypeOf),zl=Xu("navigator","userAgent")||"",Tj=rt.process,Pj=rt.Deno,Nj=Tj&&Tj.versions||Pj&&Pj.version,jj=Nj&&Nj.v8;jj&&(Qv=(va=jj.split("."))[0]>0&&va[0]<4?1:+(va[0]+va[1])),!Qv&&zl&&(!(va=zl.match(/Edge\/(\d+)/))||va[1]>=74)&&(va=zl.match(/Chrome\/(\d+)/))&&(Qv=+va[1]);var up=Qv,Ox=!!Object.getOwnPropertySymbols&&!le(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&up&&up<41}),kx=Ox&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kdt=rt.Object,Bx=kx?function(t){return typeof t=="symbol"}:function(t){var e=Xu("Symbol");return ie(e)&&ap(e.prototype,kdt(t))},Bdt=rt.String,rm=function(t){try{return Bdt(t)}catch{return"Object"}},_dt=rt.TypeError,ya=function(t){if(ie(t))return t;throw _dt(rm(t)+" is not a function")},sp=function(t,e){var r=t[e];return r==null?void 0:ya(r)},Fdt=rt.TypeError,Tdt=Object.defineProperty,_x=function(t,e){try{Tdt(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},ba=rt["__core-js_shared__"]||_x("__core-js_shared__",{}),Fx=Cx(function(t){(t.exports=function(e,r){return ba[e]||(ba[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Pdt=rt.Object,nm=function(t){return Pdt(ip(t))},Ndt=xt({}.hasOwnProperty),$e=Object.hasOwn||function(t,e){return Ndt(nm(t),e)},jdt=0,Idt=Math.random(),Ldt=xt(1 .toString),Tx=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ldt(++jdt+Idt,36)},lp=Fx("wks"),$u=rt.Symbol,Ij=$u&&$u.for,Rdt=kx?$u:$u&&$u.withoutSetter||Tx,Ve=function(t){if(!$e(lp,t)||!Ox&&typeof lp[t]!="string"){var e="Symbol."+t;Ox&&$e($u,t)?lp[t]=$u[t]:lp[t]=kx&&Ij?Ij(e):Rdt(e)}return lp[t]},Mdt=rt.TypeError,Vdt=Ve("toPrimitive"),Px=function(t){var e=function(r,n){if(!be(r)||Bx(r))return r;var o,i=sp(r,Vdt);if(i){if(o=ce(i,r,n),!be(o)||Bx(o))return o;throw Mdt("Can't convert object to primitive value")}return function(a,u){var s,l;if(ie(s=a.toString)&&!be(l=ce(s,a))||ie(s=a.valueOf)&&!be(l=ce(s,a)))return l;throw Fdt("Can't convert object to primitive value")}(r)}(t,"string");return Bx(e)?e:e+""},Nx=rt.document,zdt=be(Nx)&&be(Nx.createElement),cp=function(t){return zdt?Nx.createElement(t):{}},Lj=!Ao&&!le(function(){return Object.defineProperty(cp("div"),"a",{get:function(){return 7}}).a!=7}),Rj=Object.getOwnPropertyDescriptor,jx={f:Ao?Rj:function(t,e){if(t=ma(t),e=Px(e),Lj)try{return Rj(t,e)}catch{}if($e(t,e))return em(!ce(Edt.f,t,e),t[e])}},Hdt=rt.String,Udt=rt.TypeError,ur=function(t){if(be(t))return t;throw Udt(Hdt(t)+" is not an object")},Wdt=rt.TypeError,Mj=Object.defineProperty,ai={f:Ao?Mj:function(t,e,r){if(ur(t),e=Px(e),ur(r),Lj)try{return Mj(t,e,r)}catch{}if("get"in r||"set"in r)throw Wdt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},wa=Ao?function(t,e,r){return ai.f(t,e,em(1,r))}:function(t,e,r){return t[e]=r,t},Gdt=xt(Function.toString);ie(ba.inspectSource)||(ba.inspectSource=function(t){return Gdt(t)});var om,fp,im,am=ba.inspectSource,Vj=rt.WeakMap,zj=ie(Vj)&&/native code/.test(am(Vj)),Hj=Fx("keys"),Ix=function(t){return Hj[t]||(Hj[t]=Tx(t))},um={},Lx=rt.TypeError,qdt=rt.WeakMap;if(zj||ba.state){var Zu=ba.state||(ba.state=new qdt),Kdt=xt(Zu.get),Uj=xt(Zu.has),Ydt=xt(Zu.set);om=function(t,e){if(Uj(Zu,t))throw new Lx("Object already initialized");return e.facade=t,Ydt(Zu,t,e),e},fp=function(t){return Kdt(Zu,t)||{}},im=function(t){return Uj(Zu,t)}}else{var Hl=Ix("state");um[Hl]=!0,om=function(t,e){if($e(t,Hl))throw new Lx("Object already initialized");return e.facade=t,wa(t,Hl,e),e},fp=function(t){return $e(t,Hl)?t[Hl]:{}},im=function(t){return $e(t,Hl)}}var dn={set:om,get:fp,has:im,enforce:function(t){return im(t)?fp(t):om(t,{})},getterFor:function(t){return function(e){var r;if(!be(e)||(r=fp(e)).type!==t)throw Lx("Incompatible receiver, "+t+" required");return r}}},Wj=Function.prototype,Xdt=Ao&&Object.getOwnPropertyDescriptor,Rx=$e(Wj,"name"),Ul={EXISTS:Rx,PROPER:Rx&&(function(){}).name==="something",CONFIGURABLE:Rx&&(!Ao||Ao&&Xdt(Wj,"name").configurable)},Fn=Cx(function(t){var e=Ul.CONFIGURABLE,r=dn.get,n=dn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ie(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$e(u,"name")||e&&u.name!==p)&&wa(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==rt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:wa(i,a,u)):f?i[a]=u:_x(a,u)})(Function.prototype,"toString",function(){return ie(this)&&r(this).source||am(this)})}),$dt=Math.ceil,Zdt=Math.floor,sm=function(t){var e=+t;return e!=e||e===0?0:(e>0?Zdt:$dt)(e)},Jdt=Math.max,Qdt=Math.min,dp=function(t,e){var r=sm(t);return r<0?Jdt(r+e,0):Qdt(r,e)},tpt=Math.min,Gj=function(t){return t>0?tpt(sm(t),9007199254740991):0},pp=function(t){return Gj(t.length)},qj=function(t){return function(e,r,n){var o,i=ma(e),a=pp(i),u=dp(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Kj={includes:qj(!0),indexOf:qj(!1)},ept=Kj.indexOf,Yj=xt([].push),Xj=function(t,e){var r,n=ma(t),o=0,i=[];for(r in n)!$e(um,r)&&$e(n,r)&&Yj(i,r);for(;e.length>o;)$e(n,r=e[o++])&&(~ept(i,r)||Yj(i,r));return i},lm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rpt=lm.concat("length","prototype"),cm={f:Object.getOwnPropertyNames||function(t){return Xj(t,rpt)}},npt={f:Object.getOwnPropertySymbols},opt=xt([].concat),ipt=Xu("Reflect","ownKeys")||function(t){var e=cm.f(ur(t)),r=npt.f;return r?opt(e,r(t)):e},apt=function(t,e){for(var r=ipt(e),n=ai.f,o=jx.f,i=0;i<r.length;i++){var a=r[i];$e(t,a)||n(t,a,o(e,a))}},upt=/#|\.prototype\./,hp=function(t,e){var r=lpt[spt(t)];return r==fpt||r!=cpt&&(ie(e)?le(e):!!e)},spt=hp.normalize=function(t){return String(t).replace(upt,".").toLowerCase()},lpt=hp.data={},cpt=hp.NATIVE="N",fpt=hp.POLYFILL="P",fm=hp,dpt=jx.f,Kr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?rt:l?rt[u]||_x(u,{}):(rt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=dpt(r,n))&&a.value:r[n],!fm(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;apt(i,o)}(t.sham||o&&o.sham)&&wa(i,"sham",!0),Fn(r,n,i,t)}},$j={};$j[Ve("toStringTag")]="z";var Mx=String($j)==="[object z]",ppt=Ve("toStringTag"),hpt=rt.Object,gpt=Oo(function(){return arguments}())=="Arguments",dm=Mx?Oo:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=hpt(t),ppt))=="string"?r:gpt?Oo(e):(n=Oo(e))=="Object"&&ie(e.callee)?"Arguments":n},vpt=rt.String,Tn=function(t){if(dm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return vpt(t)},Vx=`
142
+ \v\f\r                 \u2028\u2029\uFEFF`,Zj=xt("".replace),pm="["+Vx+"]",mpt=RegExp("^"+pm+pm+"*"),ypt=RegExp(pm+pm+"*$"),bpt=function(t){return function(e){var r=Tn(ip(e));return 1&t&&(r=Zj(r,mpt,"")),2&t&&(r=Zj(r,ypt,"")),r}},wpt={trim:bpt(3)},Ept=Ul.PROPER,Cpt=wpt.trim;function Jj(t){return t.length?t[0].tagName.toLowerCase():""}function Qj(t,e,r){e===void 0&&(e="auto"),r===void 0&&(r="auto");var n=_(t);return n.attr("width",e),n.attr("height",r),n[0].outerHTML}Kr({target:"String",proto:!0,forced:le(function(){return!!Vx.trim()||"​…᠎".trim()!=="​…᠎"||Ept&&Vx.trim.name!=="trim"})},{trim:function(){return Cpt(this)}}),Kr({global:!0},{globalThis:rt}),mn&&(_.fn.append=mn),co&&(_.fn.on=co),Fi&&(_.fn.focus=Fi),vn&&(_.fn.attr=vn),lo&&(_.fn.val=lo),_i&&(_.fn.html=_i),js&&(_.fn.parent=js),Ts&&(_.fn.hasClass=Ts),Ms&&(_.fn.empty=Ms);var hm,xpt={type:"video",renderElem:function(t,e,r){var n,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=O.isNodeSelected(r,t);if(a.trim().indexOf("<iframe ")===0)n=bt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:Qj(a,c,d)});else{var v=bt("video",{poster:s,controls:!0},bt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
143
+ 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=bt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Vs("div",{props:{contentEditable:!1},on:{mousedown:function(h){return h.preventDefault()}}},n)}},Spt={type:"video",elemToHtml:function(t,e){var r=t,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
144
+ `;return o.trim().indexOf("<iframe ")===0?f+=Qj(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
145
+ </div>`}},Dpt=Object.keys||function(t){return Xj(t,lm)},Apt=Ao?Object.defineProperties:function(t,e){ur(t);for(var r,n=ma(e),o=Dpt(e),i=o.length,a=0;i>a;)ai.f(t,r=o[a++],n[r]);return t},zx=Xu("document","documentElement"),tI=Ix("IE_PROTO"),Hx=function(){},eI=function(t){return"<script>"+t+"<\/script>"},rI=function(t){t.write(eI("")),t.close();var e=t.parentWindow.Object;return t=null,e},gm=function(){try{hm=new ActiveXObject("htmlfile")}catch{}var t,e;gm=typeof document<"u"?document.domain&&hm?rI(hm):((e=cp("iframe")).style.display="none",zx.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(eI("document.F=Object")),t.close(),t.F):rI(hm);for(var r=lm.length;r--;)delete gm.prototype[lm[r]];return gm()};um[tI]=!0;var Ux=Object.create||function(t,e){var r;return t!==null?(Hx.prototype=ur(t),r=new Hx,Hx.prototype=null,r[tI]=t):r=gm(),e===void 0?r:Apt(r,e)},Wx=Ve("unscopables"),Gx=Array.prototype;Gx[Wx]==null&&ai.f(Gx,Wx,{configurable:!0,value:Ux(null)});var gp=function(t){Gx[Wx][t]=!0},Opt=Kj.includes;Kr({target:"Array",proto:!0},{includes:function(t){return Opt(this,t,arguments.length>1?arguments[1]:void 0)}}),gp("includes");var kpt={selector:"iframe,video,p",preParseHtml:function(t){var e=_(t),r=e;if(Jj(e)==="p"){var n=e.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=_(o))}}var a=Jj(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=_('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},nI=xt(xt.bind),vp=function(t,e){return ya(t),e===void 0?t:nI?nI(t,e):function(){return t.apply(e,arguments)}},vm=Array.isArray||function(t){return Oo(t)=="Array"},oI=function(){},Bpt=[],iI=Xu("Reflect","construct"),qx=/^\s*(?:class|function)\b/,_pt=xt(qx.exec),Fpt=!qx.exec(oI),mp=function(t){if(!ie(t))return!1;try{return iI(oI,Bpt,t),!0}catch{return!1}},Kx=!iI||le(function(){var t;return mp(mp.call)||!mp(Object)||!mp(function(){t=!0})||t})?function(t){if(!ie(t))return!1;switch(dm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fpt||!!_pt(qx,am(t))}:mp,Tpt=Ve("species"),aI=rt.Array,Ppt=function(t,e){return new(function(r){var n;return vm(r)&&(n=r.constructor,(Kx(n)&&(n===aI||vm(n.prototype))||be(n)&&(n=n[Tpt])===null)&&(n=void 0)),n===void 0?aI:n}(t))(e===0?0:e)},uI=xt([].push),sI=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=nm(s),h=Ax(v),m=vp(l,c),y=pp(h),g=0,w=f||Ppt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:uI(E,d)}else switch(t){case 4:return!1;case 7:uI(E,d)}return i?-1:n||o?o:E}},Yx={find:sI(5),findIndex:sI(6)},Npt=Yx.find,lI=!0;"find"in[]&&Array(1).find(function(){lI=!1}),Kr({target:"Array",proto:!0,forced:lI},{find:function(t){return Npt(this,t,arguments.length>1?arguments[1]:void 0)}}),gp("find");var jpt=Mx?{}.toString:function(){return"[object "+dm(this)+"]"};function cI(t,e,r,n){return e===void 0&&(e=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:t,poster:e,width:r,height:n,children:[{text:""}]}}Mx||Fn(Object.prototype,"toString",jpt,{unsafe:!0});var fI,Xx,Ipt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,r){var n=_(t),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",cI(o=s[0].outerHTML,i,a,u);var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",cI(o,i=l.attr("poster")||"",a,u)}},dI=function(){var t=ur(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},$x=rt.RegExp,pI=le(function(){var t=$x("a","y");return t.lastIndex=2,t.exec("abcd")!=null});pI||le(function(){return!$x("a","y").sticky});var Lpt={BROKEN_CARET:pI||le(function(){var t=$x("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},Rpt=rt.RegExp,Mpt=le(function(){var t=Rpt(".","s");return!(t.dotAll&&t.exec(`
146
+ `)&&t.flags==="s")}),Vpt=rt.RegExp,zpt=le(function(){var t=Vpt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Hpt=dn.get,Upt=Fx("native-string-replace",String.prototype.replace),mm=RegExp.prototype.exec,Zx=mm,Wpt=xt("".charAt),Gpt=xt("".indexOf),qpt=xt("".replace),Jx=xt("".slice),Qx=(Xx=/b*/g,ce(mm,fI=/a/,"a"),ce(mm,Xx,"a"),fI.lastIndex!==0||Xx.lastIndex!==0),hI=Lpt.BROKEN_CARET,t3=/()??/.exec("")[1]!==void 0;(Qx||t3||hI||Mpt||zpt)&&(Zx=function(t){var e,r,n,o,i,a,u,s=this,l=Hpt(s),c=Tn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ce(Zx,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=hI&&s.sticky,v=ce(dI,s),h=s.source,m=0,y=c;if(p&&(v=qpt(v,"y",""),Gpt(v,"g")===-1&&(v+="g"),y=Jx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Wpt(c,s.lastIndex-1)!==`
147
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),t3&&(r=new RegExp("^"+h+"$(?!\\s)",v)),Qx&&(n=s.lastIndex),o=ce(mm,p?r:s,y),p?o?(o.input=Jx(o.input,m),o[0]=Jx(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qx&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),t3&&o&&o.length>1&&ce(Upt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Ux(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ym=Zx;Kr({target:"RegExp",proto:!0,forced:/./.exec!==ym},{exec:ym});var e3=Function.prototype,gI=e3.apply,Kpt=e3.bind,vI=e3.call,mI=typeof Reflect=="object"&&Reflect.apply||(Kpt?vI.bind(gI):function(){return vI.apply(gI,arguments)}),yI=(Ve("species"),RegExp.prototype),Ypt=xt("".charAt),bI=xt("".charCodeAt),Xpt=xt("".slice),$pt=function(t){return function(e,r){var n,o,i=Tn(ip(e)),a=sm(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=bI(i,a))<55296||n>56319||a+1===u||(o=bI(i,a+1))<56320||o>57343?t?Ypt(i,a):n:t?Xpt(i,a,a+2):o-56320+(n-55296<<10)+65536}},wI={charAt:$pt(!0)},Zpt=wI.charAt,Jpt=function(t,e,r){return e+(r?Zpt(t,e).length:1)},Qpt=Math.floor,r3=xt("".charAt),tht=xt("".replace),n3=xt("".slice),eht=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rht=/\$([$&'`]|\d{1,2})/g,nht=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=rht;return o!==void 0&&(o=nm(o),s=eht),tht(i,s,function(l,c){var f;switch(r3(c,0)){case"$":return"$";case"&":return t;case"`":return n3(e,0,r);case"'":return n3(e,a);case"<":f=o[n3(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Qpt(d/10);return p===0?l:p<=u?n[p-1]===void 0?r3(c,1):n[p-1]+r3(c,1):l}f=n[d-1]}return f===void 0?"":f})},oht=rt.TypeError,iht=function(t,e){var r=t.exec;if(ie(r)){var n=ce(r,t,e);return n!==null&&ur(n),n}if(Oo(t)==="RegExp")return ce(ym,t,e);throw oht("RegExp#exec called on incompatible receiver")},o3=Ve("replace"),aht=Math.max,uht=Math.min,sht=xt([].concat),i3=xt([].push),EI=xt("".indexOf),CI=xt("".slice),lht="a".replace(/./,"$0")==="$0",xI=!!/./[o3]&&/./[o3]("a","$0")==="";function SI(t){return t+"-"+v7()}(function(t,e,r,n){var o=Ve(t),i=!le(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!le(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=xt(/./[o]),s=function(l,c,f){var d=xI?"$":"$0";return[function(p,v){var h=ip(this),m=p==null?void 0:sp(p,o3);return m?ce(m,p,h,v):ce(c,Tn(h),p,v)},function(p,v){var h=ur(this),m=Tn(p);if(typeof v=="string"&&EI(v,d)===-1&&EI(v,"$<")===-1){var y=f(c,h,m,v);if(y.done)return y.value}var g=ie(v);g||(v=Tn(v));var w=h.global;if(w){var E=h.unicode;h.lastIndex=0}for(var x=[];;){var D=iht(h,m);if(D===null||(i3(x,D),!w))break;Tn(D[0])===""&&(h.lastIndex=Jpt(m,Gj(h.lastIndex),E))}for(var S,k="",F=0,H=0;H<x.length;H++){for(var G=Tn((D=x[H])[0]),j=aht(uht(sm(D.index),m.length),0),L=[],z=1;z<D.length;z++)i3(L,(S=D[z])===void 0?S:String(S));var K=D.groups;if(g){var X=sht([G],L,j,m);K!==void 0&&i3(X,K);var nt=Tn(mI(v,void 0,X))}else nt=nht(G,m,j,L,K,v);j>=F&&(k+=CI(m,F,j)+nt,F=j+G.length)}return k+CI(m,F)}]}(0,""[t],function(l,c,f,d,p){var v=xt(l),h=c.exec;return h===ym||h===yI.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Fn(String.prototype,t,s[0]),Fn(yI,o,s[1])}})("replace",0,!!le(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!lht||xI);var bm=rt.Promise,wm=function(t,e,r){for(var n in e)Fn(t,n,e[n],r);return t},cht=rt.String,fht=rt.TypeError,Wl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=xt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return ur(n),function(i){if(typeof i=="object"||ie(i))return i;throw fht("Can't set "+cht(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),dht=ai.f,DI=Ve("toStringTag"),Em=function(t,e,r){t&&!$e(t=r?t:t.prototype,DI)&&dht(t,DI,{configurable:!0,value:e})},AI=Ve("species"),pht=rt.TypeError,a3=function(t,e){if(ap(e,t))return t;throw pht("Incorrect invocation")},Gl={},hht=Ve("iterator"),ght=Array.prototype,vht=Ve("iterator"),OI=function(t){if(t!=null)return sp(t,vht)||sp(t,"@@iterator")||Gl[dm(t)]},mht=rt.TypeError,kI=function(t,e,r){var n,o;ur(t);try{if(!(n=sp(t,"return"))){if(e==="throw")throw r;return r}n=ce(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return ur(n),r},yht=rt.TypeError,Cm=function(t,e){this.stopped=t,this.result=e},BI=Cm.prototype,xm=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=vp(e,f),m=function(g){return n&&kI(n,"normal",g),new Cm(!0,g)},y=function(g){return d?(ur(g),v?h(g[0],g[1],m):h(g[0],g[1])):v?h(g,m):h(g)};if(p)n=t;else{if(!(o=OI(t)))throw yht(rm(t)+" is not iterable");if((c=o)!==void 0&&(Gl.Array===c||ght[hht]===c)){for(i=0,a=pp(t);a>i;i++)if((u=y(t[i]))&&ap(BI,u))return u;return new Cm(!1)}n=function(g,w){var E=arguments.length<2?OI(g):w;if(ya(E))return ur(ce(E,g));throw mht(rm(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=ce(s,n)).done;){try{u=y(l.value)}catch(g){kI(n,"throw",g)}if(typeof u=="object"&&u&&ap(BI,u))return u}return new Cm(!1)},_I=Ve("iterator"),FI=!1;try{var bht=0,TI={next:function(){return{done:!!bht++}},return:function(){FI=!0}};TI[_I]=function(){return this},Array.from(TI,function(){throw 2})}catch{}var yp,ql,PI,u3,NI=function(t,e){if(!FI)return!1;var r=!1;try{var n={};n[_I]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},wht=rt.TypeError,Eht=Ve("species"),jI=xt([].slice),II=/(?:ipad|iphone|ipod).*applewebkit/i.test(zl),Ea=Oo(rt.process)=="process",s3=rt.setImmediate,LI=rt.clearImmediate,Cht=rt.process,l3=rt.Dispatch,xht=rt.Function,RI=rt.MessageChannel,Sht=rt.String,c3=0,bp={};try{yp=rt.location}catch{}var f3=function(t){if($e(bp,t)){var e=bp[t];delete bp[t],e()}},d3=function(t){return function(){f3(t)}},MI=function(t){f3(t.data)},VI=function(t){rt.postMessage(Sht(t),yp.protocol+"//"+yp.host)};s3&&LI||(s3=function(t){var e=jI(arguments,1);return bp[++c3]=function(){mI(ie(t)?t:xht(t),void 0,e)},ql(c3),c3},LI=function(t){delete bp[t]},Ea?ql=function(t){Cht.nextTick(d3(t))}:l3&&l3.now?ql=function(t){l3.now(d3(t))}:RI&&!II?(u3=(PI=new RI).port2,PI.port1.onmessage=MI,ql=vp(u3.postMessage,u3)):rt.addEventListener&&ie(rt.postMessage)&&!rt.importScripts&&yp&&yp.protocol!=="file:"&&!le(VI)?(ql=VI,rt.addEventListener("message",MI,!1)):ql="onreadystatechange"in cp("script")?function(t){zx.appendChild(cp("script")).onreadystatechange=function(){zx.removeChild(this),f3(t)}}:function(t){setTimeout(d3(t),0)});var wp,Ju,Ep,Kl,p3,h3,g3,zI,HI={set:s3},Dht=/ipad|iphone|ipod/i.test(zl)&&rt.Pebble!==void 0,Aht=/web0s(?!.*chrome)/i.test(zl),Oht=jx.f,v3=HI.set,UI=rt.MutationObserver||rt.WebKitMutationObserver,WI=rt.document,GI=rt.process,Sm=rt.Promise,qI=Oht(rt,"queueMicrotask"),KI=qI&&qI.value;KI||(wp=function(){var t,e;for(Ea&&(t=GI.domain)&&t.exit();Ju;){e=Ju.fn,Ju=Ju.next;try{e()}catch(r){throw Ju?Kl():Ep=void 0,r}}Ep=void 0,t&&t.enter()},II||Ea||Aht||!UI||!WI?!Dht&&Sm&&Sm.resolve?((g3=Sm.resolve(void 0)).constructor=Sm,zI=vp(g3.then,g3),Kl=function(){zI(wp)}):Ea?Kl=function(){GI.nextTick(wp)}:(v3=vp(v3,rt),Kl=function(){v3(wp)}):(p3=!0,h3=WI.createTextNode(""),new UI(wp).observe(h3,{characterData:!0}),Kl=function(){h3.data=p3=!p3}));var m3,YI,XI,$I,ZI=KI||function(t){var e={fn:t,next:void 0};Ep&&(Ep.next=e),Ju||(Ju=e,Kl()),Ep=e},kht=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=ya(e),this.reject=ya(r)},y3={f:function(t){return new kht(t)}},b3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Bht=typeof window=="object",JI=HI.set,_ht=Ve("species"),ui="Promise",QI=dn.getterFor(ui),Fht=dn.set,Tht=dn.getterFor(ui),Qu=bm&&bm.prototype,ko=bm,Cp=Qu,tL=rt.TypeError,w3=rt.document,E3=rt.process,Yl=y3.f,Pht=Yl,Nht=!!(w3&&w3.createEvent&&rt.dispatchEvent),eL=ie(rt.PromiseRejectionEvent),rL=!1,xp=fm(ui,function(){var t=am(ko),e=t!==String(ko);if(!e&&up===66)return!0;if(up>=51&&/native code/.test(t))return!1;var r=new ko(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[_ht]=n,!(rL=r.then(function(){})instanceof n)||!e&&Bht&&!eL}),jht=xp||!NI(function(t){ko.all(t).catch(function(){})}),nL=function(t){var e;return!(!be(t)||!ie(e=t.then))&&e},C3=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;ZI(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&Lht(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(tL("Promise-chain cycle")):(u=nL(a))?ce(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Iht(t)})}},oL=function(t,e,r){var n,o;Nht?((n=w3.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),rt.dispatchEvent(n)):n={promise:e,reason:r},!eL&&(o=rt["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},Iht=function(t){ce(JI,rt,function(){var e,r=t.facade,n=t.value;if(iL(t)&&(e=b3(function(){Ea?E3.emit("unhandledRejection",n,r):oL("unhandledrejection",r,n)}),t.rejection=Ea||iL(t)?2:1,e.error))throw e.value})},iL=function(t){return t.rejection!==1&&!t.parent},Lht=function(t){ce(JI,rt,function(){var e=t.facade;Ea?E3.emit("rejectionHandled",e):oL("rejectionhandled",e,t.value)})},Xl=function(t,e,r){return function(n){t(e,n,r)}},$l=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,C3(t,!0))},x3=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw tL("Promise can't be resolved itself");var n=nL(e);n?ZI(function(){var o={done:!1};try{ce(n,e,Xl(x3,o,t),Xl($l,o,t))}catch(i){$l(o,i,t)}}):(t.value=e,t.state=1,C3(t,!1))}catch(o){$l({done:!1},o,t)}}};if(xp&&(Cp=(ko=function(t){a3(this,Cp),ya(t),ce(m3,this);var e=QI(this);try{t(Xl(x3,e),Xl($l,e))}catch(r){$l(e,r)}}).prototype,(m3=function(t){Fht(this,{type:ui,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=wm(Cp,{then:function(t,e){var r=Tht(this),n=r.reactions,o=Yl(function(i,a){var u,s=ur(i).constructor;return s===void 0||(u=ur(s)[Eht])==null?a:function(l){if(Kx(l))return l;throw wht(rm(l)+" is not a constructor")}(u)}(this,ko));return o.ok=!ie(t)||t,o.fail=ie(e)&&e,o.domain=Ea?E3.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&C3(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),YI=function(){var t=new m3,e=QI(t);this.promise=t,this.resolve=Xl(x3,e),this.reject=Xl($l,e)},y3.f=Yl=function(t){return t===ko||t===XI?new YI(t):Pht(t)},ie(bm)&&Qu!==Object.prototype)){$I=Qu.then,rL||(Fn(Qu,"then",function(t,e){var r=this;return new ko(function(n,o){ce($I,r,n,o)}).then(t,e)},{unsafe:!0}),Fn(Qu,"catch",Cp.catch,{unsafe:!0}));try{delete Qu.constructor}catch{}Wl&&Wl(Qu,Cp)}function Sp(t,e,r){return r===void 0&&(r=""),Zv(this,void 0,void 0,function(){var n,o,i,a,u,s,l;return Jv(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),n=t.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(e,r)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then(function(){R.insertNodes(t,l)}),o(l),[2]}})})}function S3(){return SI("w-e-insert-video")}Kr({global:!0,wrap:!0,forced:xp},{Promise:ko}),Em(ko,ui,!1),function(t){var e=Xu("Promise"),r=ai.f;Ao&&e&&!e[AI]&&r(e,AI,{configurable:!0,get:function(){return this}})}(),XI=Xu(ui),Kr({target:ui,stat:!0,forced:xp},{reject:function(t){var e=Yl(this);return ce(e.reject,void 0,t),e.promise}}),Kr({target:ui,stat:!0,forced:xp},{resolve:function(t){return function(e,r){if(ur(e),be(r)&&r.constructor===e)return r;var n=y3.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),Kr({target:ui,stat:!0,forced:jht},{all:function(t){var e=this,r=Yl(e),n=r.resolve,o=r.reject,i=b3(function(){var a=ya(e.resolve),u=[],s=0,l=1;xm(t,function(c){var f=s++,d=!1;l++,ce(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=Yl(e),n=r.reject,o=b3(function(){var i=ya(e.resolve);xm(t,function(a){ce(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var Rht=function(){function t(){this.title=tt("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=S3(),this.posterInputId=S3(),this.buttonId=S3()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||!!O.getSelectedElems(e).some(function(n){var o=O.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=Yu(an(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Yu(an(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=_(l),v=_(d),h=Yu(pl(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var m=_("<div></div>");m.on("click","#"+a,function(g){return Zv(r,void 0,void 0,function(){var w,E;return Jv(this,function(x){switch(x.label){case 0:return g.preventDefault(),w=m.find("#"+o).val().trim(),E=m.find("#"+i).val().trim(),[4,Sp(e,w,E)];case 1:return x.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=m}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(h),p.val(""),v.val(""),setTimeout(function(){p.focus()}),y[0]},t}(),Mht=xt([].join),Vht=Ax!=Object,zht=function(t,e){var r=[].join;return!!r&&le(function(){r.call(null,",",1)})}();Kr({target:"Array",proto:!0,forced:Vht||!zht},{join:function(t){return Mht(ma(this),t===void 0?",":t)}});var ts,aL,uL,Hht=!le(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),sL=Ix("IE_PROTO"),D3=rt.Object,Uht=D3.prototype,Dm=Hht?D3.getPrototypeOf:function(t){var e=nm(t);if($e(e,sL))return e[sL];var r=e.constructor;return ie(r)&&e instanceof r?r.prototype:e instanceof D3?Uht:null},A3=Ve("iterator"),lL=!1;[].keys&&("next"in(uL=[].keys())?(aL=Dm(Dm(uL)))!==Object.prototype&&(ts=aL):lL=!0);var Wht=ts==null||le(function(){var t={};return ts[A3].call(t)!==t});Wht&&(ts={}),ie(ts[A3])||Fn(ts,A3,function(){return this});var O3={IteratorPrototype:ts,BUGGY_SAFARI_ITERATORS:lL},Ght=O3.IteratorPrototype,qht=function(){return this},Kht=Ul.PROPER,Yht=Ul.CONFIGURABLE,cL=O3.IteratorPrototype,k3=O3.BUGGY_SAFARI_ITERATORS,Dp=Ve("iterator"),Xht=function(){return this},fL=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=Ux(Ght,{next:em(1,g)}),Em(m,E,!1),Gl[E]=qht})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!k3&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Dp]||d["@@iterator"]||o&&d[o],v=!k3&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Dm(h.call(new t)))!==Object.prototype&&u.next&&(Dm(u)!==cL&&(Wl?Wl(u,cL):ie(u[Dp])||Fn(u,Dp,Xht)),Em(u,c,!0)),Kht&&o=="values"&&p&&p.name!=="values"&&(Yht?wa(d,"name","values"):(f=!0,v=function(){return ce(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Kr({target:e,proto:!0,forced:k3||f},s)),d[Dp]!==v&&Fn(d,Dp,v,{name:o}),Gl[e]=v,s},$ht=dn.set,Zht=dn.getterFor("Array Iterator"),Ap=fL(Array,"Array",function(t,e){$ht(this,{type:"Array Iterator",target:ma(t),index:0,kind:e})},function(){var t=Zht(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Gl.Arguments=Gl.Array,gp("keys"),gp("values"),gp("entries");var Jht=wI.charAt,Qht=dn.set,tgt=dn.getterFor("String Iterator");fL(String,"String",function(t){Qht(this,{type:"String Iterator",string:Tn(t),index:0})},function(){var t,e=tgt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Jht(r,n),e.index+=t.length,{value:t,done:!1})});var dL=function(t,e,r){var n=Px(e);n in t?ai.f(t,n,em(0,r)):t[n]=r},egt=rt.Array,rgt=Math.max,pL=cm.f,hL=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ngt={f:function(t){return hL&&Oo(t)=="Window"?function(e){try{return pL(e)}catch{return function(n,o,i){for(var a=pp(n),u=dp(void 0,a),s=dp(a,a),l=egt(rgt(s-u,0)),c=0;u<s;u++,c++)dL(l,c,n[u]);return l.length=c,l}(hL)}}(t):pL(ma(t))}},gL=le(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Am=Object.isExtensible,es=le(function(){Am(1)})||gL?function(t){return!!be(t)&&(!gL||Oo(t)!="ArrayBuffer")&&(!Am||Am(t))}:Am,ogt=!le(function(){return Object.isExtensible(Object.preventExtensions({}))}),B3=Cx(function(t){var e=ai.f,r=!1,n=Tx("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=cm.f,s=xt([].splice),l={};l[n]=1,u(l).length&&(cm.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Kr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ngt.f}))},fastKey:function(u,s){if(!be(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!$e(u,n)){if(!es(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!$e(u,n)){if(!es(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return ogt&&r&&es(u)&&!$e(u,n)&&i(u),u}};um[n]=!0}),Om=B3.getWeakData,igt=dn.set,agt=dn.getterFor,ugt=Yx.find,sgt=Yx.findIndex,lgt=xt([].splice),cgt=0,km=function(t){return t.frozen||(t.frozen=new vL)},vL=function(){this.entries=[]},_3=function(t,e){return ugt(t.entries,function(r){return r[0]===e})};vL.prototype={get:function(t){var e=_3(this,t);if(e)return e[1]},has:function(t){return!!_3(this,t)},set:function(t,e){var r=_3(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=sgt(this.entries,function(r){return r[0]===t});return~e&&lgt(this.entries,e,1),!!~e}};var Op,mL={getConstructor:function(t,e,r,n){var o=t(function(s,l){a3(s,i),igt(s,{type:e,id:cgt++,frozen:void 0}),l!=null&&xm(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=agt(e),u=function(s,l,c){var f=a(s),d=Om(ur(l),!0);return d===!0?km(f).set(l,c):d[f.id]=c,s};return wm(i,{delete:function(s){var l=a(this);if(!be(s))return!1;var c=Om(s);return c===!0?km(l).delete(s):c&&$e(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!be(s))return!1;var c=Om(s);return c===!0?km(l).has(s):c&&$e(c,l.id)}}),wm(i,r?{get:function(s){var l=a(this);if(be(s)){var c=Om(s);return c===!0?km(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Bm=dn.enforce,fgt=!rt.ActiveXObject&&"ActiveXObject"in rt,yL=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},dgt=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=xt(u[m]);Fn(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!be(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!be(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!be(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(fm(t,!ie(a)||!(o||u.forEach&&!le(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),B3.enable();else if(fm(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=le(function(){f.has(1)}),v=NI(function(m){new a(m)}),h=!o&&le(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){a3(m,u);var g=function(w,E,x){var D,S;return Wl&&ie(D=E.constructor)&&D!==x&&be(S=D.prototype)&&S!==x.prototype&&Wl(w,S),w}(new a,m,s);return y!=null&&xm(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Kr({global:!0,forced:s!=a},l),Em(s,t),o||r.setStrong(s,t,n),s}("WeakMap",yL,mL);if(zj&&fgt){Op=mL.getConstructor(yL,"WeakMap",!0),B3.enable();var kp=dgt.prototype,bL=xt(kp.delete),_m=xt(kp.has),wL=xt(kp.get),EL=xt(kp.set);wm(kp,{delete:function(t){if(be(t)&&!es(t)){var e=Bm(this);return e.frozen||(e.frozen=new Op),bL(this,t)||e.frozen.delete(t)}return bL(this,t)},has:function(t){if(be(t)&&!es(t)){var e=Bm(this);return e.frozen||(e.frozen=new Op),_m(this,t)||e.frozen.has(t)}return _m(this,t)},get:function(t){if(be(t)&&!es(t)){var e=Bm(this);return e.frozen||(e.frozen=new Op),_m(this,t)?wL(this,t):e.frozen.get(t)}return wL(this,t)},set:function(t,e){if(be(t)&&!es(t)){var r=Bm(this);r.frozen||(r.frozen=new Op),_m(this,t)?EL(this,t,e):r.frozen.set(t,e)}else EL(this,t,e);return this}})}var CL={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},F3=cp("span").classList,xL=F3&&F3.constructor&&F3.constructor.prototype,pgt=xL===Object.prototype?void 0:xL,T3=Ve("iterator"),SL=Ve("toStringTag"),P3=Ap.values,DL=function(t,e){if(t){if(t[T3]!==P3)try{wa(t,T3,P3)}catch{t[T3]=P3}if(t[SL]||wa(t,SL,e),CL[e]){for(var r in Ap)if(t[r]!==Ap[r])try{wa(t,r,Ap[r])}catch{t[r]=Ap[r]}}}};for(var N3 in CL)DL(rt[N3]&&rt[N3].prototype,N3);DL(pgt,"DOMTokenList");var hgt=Ul.EXISTS,ggt=ai.f,AL=Function.prototype,vgt=xt(AL.toString),OL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mgt=xt(OL.exec);Ao&&!hgt&&ggt(AL,"name",{configurable:!0,get:function(){try{return mgt(OL,vgt(this))[1]}catch{return""}}});var ygt=Ve("species"),bgt=up>=51||!le(function(){var t=[];return(t.constructor={})[ygt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),wgt=Ve("species"),j3=rt.Array,Egt=Math.max;function kL(t){return t.getMenuConfig("uploadVideo")}Kr({target:"Array",proto:!0,forced:!bgt},{slice:function(t,e){var r,n,o,i=ma(this),a=pp(i),u=dp(t,a),s=dp(e===void 0?a:e,a);if(vm(i)&&(r=i.constructor,(Kx(r)&&(r===j3||vm(r.prototype))||be(r)&&(r=r[wgt])===null)&&(r=void 0),r===j3||r===void 0))return jI(i,u,s);for(n=new(r===void 0?j3:r)(Egt(s-u,0)),o=0;u<s;u++,o++)u in i&&dL(n,o,i[u]);return n.length=o,n}});var BL=new WeakMap;function Cgt(t,e){return Zv(this,void 0,void 0,function(){var r,n,o,i;return Jv(this,function(a){switch(a.label){case 0:return r=function(u){var s=BL.get(u);if(s!=null)return s;var l=kL(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=kB($v($v({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,m){if(p)return p(m,function(k,F){return Sp(u,k,F)}),void c(h,m);var y=m.errno,g=y===void 0?1:y,w=m.data,E=w===void 0?{}:w;if(g===0){var x=E.url,D=x===void 0?"":x,S=E.poster;Sp(u,D,S===void 0?"":S),c(h,m)}else d(h,m)},onError:function(h,m,y){v(h,m,y)}})),BL.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}var xgt=function(){function t(){this.title=tt("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f){return Sp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=_("body"),l=_('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;Zv(this,void 0,void 0,function(){var h,m,y,g,w,E;return Jv(this,function(x){switch(x.label){case 0:if(d==null)return[2];h=Array.prototype.slice.call(d),m=kL(f).customUpload,x.label=1;case 1:x.trys.push([1,9,10,15]),y=wdt(h),x.label=2;case 2:return[4,y.next()];case 3:return(g=x.sent()).done?[3,8]:(w=g.value,m?[4,m(w,function(D,S){return Sp(f,D,S)})]:[3,5]);case 4:return x.sent(),[3,7];case 5:return[4,Cgt(f,w)];case 6:x.sent(),x.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return E=x.sent(),p={error:E},[3,15];case 10:return x.trys.push([10,,13,14]),g&&!g.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:x.sent(),x.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!V.isCollapsed(r)||!!O.getSelectedElems(e).some(function(n){var o=O.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),Sgt=Ul.PROPER,I3=RegExp.prototype,_L=I3.toString,Dgt=xt(dI),Agt=le(function(){return _L.call({source:"a",flags:"b"})!="/a/b"}),Ogt=Sgt&&_L.name!="toString";function L3(){return SI("w-e-insert-video")}(Agt||Ogt)&&Fn(RegExp.prototype,"toString",function(){var t=ur(this),e=Tn(t.source),r=t.flags;return"/"+e+"/"+Tn(r===void 0&&ap(I3,t)&&!("flags"in I3)?Dgt(t):r)},{unsafe:!0});var kgt=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=L3(),this.heightInputId=L3(),this.buttonId=L3()}return t.prototype.getSelectedVideoNode=function(e){return O.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=Yu(an(tt("videoModule.width"),n,"auto"),2),u=a[0],s=_(a[1]),l=Yu(an(tt("videoModule.height"),o,"auto"),2),c=l[0],f=_(l[1]),d=Yu(pl(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var p=_("<div></div>");p.on("click","#"+i,function(E){E.preventDefault();var x=p.find("#"+n).val().trim(),D=p.find("#"+o).val().trim(),S=parseInt(x),k=parseInt(D),F=S?S.toString():"auto",H=k?k.toString():"auto";e.restoreSelection(),R.setNodes(e,{width:F,height:H},{match:function(G){return O.checkNodeType(G,"video")}}),e.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var h=this.getSelectedVideoNode(e);if(h==null)return v[0];var m=h.width,y=m===void 0?"auto":m,g=h.height,w=g===void 0?"auto":g;return s.val(y),f.val(w),setTimeout(function(){s.focus()}),v[0]},t}(),Bgt={renderElems:[xpt],elemsToHtml:[Spt],preParseHtml:[kpt],parseElemsHtml:[Ipt],menus:[{key:"insertVideo",factory:function(){return new Rht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new xgt},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+" upload error",e,r)}}},{key:"editVideoSize",factory:function(){return new kgt}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="video"||e(o)},n.normalizeNode=function(o){var i=Yu(o,2),a=i[0],u=i[1];return O.getNodeType(a)==="video"&&O.isLastNode(n,a)&&R.insertNodes(n,O.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};Ur("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Ur("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var FL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function R3(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ca,Fm,Tm=function(t){return t&&t.Math==Math&&t},et=Tm(typeof globalThis=="object"&&globalThis)||Tm(typeof window=="object"&&window)||Tm(typeof self=="object"&&self)||Tm(typeof FL=="object"&&FL)||function(){return this}()||Function("return this")(),he=function(t){try{return!!t()}catch{return!0}},Bo=!he(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bp=Function.prototype.call,te=Bp.bind?Bp.bind(Bp):function(){return Bp.apply(Bp,arguments)},TL={}.propertyIsEnumerable,PL=Object.getOwnPropertyDescriptor,_gt={f:PL&&!TL.call({1:2},1)?function(t){var e=PL(this,t);return!!e&&e.enumerable}:TL},Pm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},NL=Function.prototype,M3=NL.bind,V3=NL.call,Fgt=M3&&M3.bind(V3),Pt=M3?function(t){return t&&Fgt(V3,t)}:function(t){return t&&function(){return V3.apply(t,arguments)}},Tgt=Pt({}.toString),Pgt=Pt("".slice),$n=function(t){return Pgt(Tgt(t),8,-1)},z3=et.Object,Ngt=Pt("".split),H3=he(function(){return!z3("z").propertyIsEnumerable(0)})?function(t){return $n(t)=="String"?Ngt(t,""):z3(t)}:z3,jgt=et.TypeError,_p=function(t){if(t==null)throw jgt("Can't call method on "+t);return t},xa=function(t){return H3(_p(t))},se=function(t){return typeof t=="function"},ge=function(t){return typeof t=="object"?t!==null:se(t)},Igt=function(t){return se(t)?t:void 0},rs=function(t,e){return arguments.length<2?Igt(et[t]):et[t]&&et[t][e]},Fp=Pt({}.isPrototypeOf),Zl=rs("navigator","userAgent")||"",jL=et.process,IL=et.Deno,LL=jL&&jL.versions||IL&&IL.version,RL=LL&&LL.v8;RL&&(Fm=(Ca=RL.split("."))[0]>0&&Ca[0]<4?1:+(Ca[0]+Ca[1])),!Fm&&Zl&&(!(Ca=Zl.match(/Edge\/(\d+)/))||Ca[1]>=74)&&(Ca=Zl.match(/Chrome\/(\d+)/))&&(Fm=+Ca[1]);var Tp=Fm,U3=!!Object.getOwnPropertySymbols&&!he(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Tp&&Tp<41}),W3=U3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lgt=et.Object,G3=W3?function(t){return typeof t=="symbol"}:function(t){var e=rs("Symbol");return se(e)&&Fp(e.prototype,Lgt(t))},Rgt=et.String,Nm=function(t){try{return Rgt(t)}catch{return"Object"}},Mgt=et.TypeError,Sa=function(t){if(se(t))return t;throw Mgt(Nm(t)+" is not a function")},Pp=function(t,e){var r=t[e];return r==null?void 0:Sa(r)},Vgt=et.TypeError,zgt=Object.defineProperty,q3=function(t,e){try{zgt(et,t,{value:e,configurable:!0,writable:!0})}catch{et[t]=e}return e},Da=et["__core-js_shared__"]||q3("__core-js_shared__",{}),K3=R3(function(t){(t.exports=function(e,r){return Da[e]||(Da[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Hgt=et.Object,Y3=function(t){return Hgt(_p(t))},Ugt=Pt({}.hasOwnProperty),Ze=Object.hasOwn||function(t,e){return Ugt(Y3(t),e)},Wgt=0,Ggt=Math.random(),qgt=Pt(1 .toString),X3=function(t){return"Symbol("+(t===void 0?"":t)+")_"+qgt(++Wgt+Ggt,36)},Np=K3("wks"),ns=et.Symbol,ML=ns&&ns.for,Kgt=W3?ns:ns&&ns.withoutSetter||X3,ze=function(t){if(!Ze(Np,t)||!U3&&typeof Np[t]!="string"){var e="Symbol."+t;U3&&Ze(ns,t)?Np[t]=ns[t]:Np[t]=W3&&ML?ML(e):Kgt(e)}return Np[t]},Ygt=et.TypeError,Xgt=ze("toPrimitive"),$3=function(t){var e=function(r,n){if(!ge(r)||G3(r))return r;var o,i=Pp(r,Xgt);if(i){if(o=te(i,r,n),!ge(o)||G3(o))return o;throw Ygt("Can't convert object to primitive value")}return function(a,u){var s,l;if(se(s=a.toString)&&!ge(l=te(s,a))||se(s=a.valueOf)&&!ge(l=te(s,a)))return l;throw Vgt("Can't convert object to primitive value")}(r)}(t,"string");return G3(e)?e:e+""},Z3=et.document,$gt=ge(Z3)&&ge(Z3.createElement),jp=function(t){return $gt?Z3.createElement(t):{}},VL=!Bo&&!he(function(){return Object.defineProperty(jp("div"),"a",{get:function(){return 7}}).a!=7}),zL=Object.getOwnPropertyDescriptor,J3={f:Bo?zL:function(t,e){if(t=xa(t),e=$3(e),VL)try{return zL(t,e)}catch{}if(Ze(t,e))return Pm(!te(_gt.f,t,e),t[e])}},Zgt=et.String,Jgt=et.TypeError,sr=function(t){if(ge(t))return t;throw Jgt(Zgt(t)+" is not an object")},Qgt=et.TypeError,HL=Object.defineProperty,si={f:Bo?HL:function(t,e,r){if(sr(t),e=$3(e),sr(r),VL)try{return HL(t,e,r)}catch{}if("get"in r||"set"in r)throw Qgt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},_o=Bo?function(t,e,r){return si.f(t,e,Pm(1,r))}:function(t,e,r){return t[e]=r,t},t0t=Pt(Function.toString);se(Da.inspectSource)||(Da.inspectSource=function(t){return t0t(t)});var jm,Ip,Im,Lm=Da.inspectSource,UL=et.WeakMap,WL=se(UL)&&/native code/.test(Lm(UL)),GL=K3("keys"),Q3=function(t){return GL[t]||(GL[t]=X3(t))},Rm={},t5=et.TypeError,e0t=et.WeakMap;if(WL||Da.state){var os=Da.state||(Da.state=new e0t),r0t=Pt(os.get),qL=Pt(os.has),n0t=Pt(os.set);jm=function(t,e){if(qL(os,t))throw new t5("Object already initialized");return e.facade=t,n0t(os,t,e),e},Ip=function(t){return r0t(os,t)||{}},Im=function(t){return qL(os,t)}}else{var Jl=Q3("state");Rm[Jl]=!0,jm=function(t,e){if(Ze(t,Jl))throw new t5("Object already initialized");return e.facade=t,_o(t,Jl,e),e},Ip=function(t){return Ze(t,Jl)?t[Jl]:{}},Im=function(t){return Ze(t,Jl)}}var pn={set:jm,get:Ip,has:Im,enforce:function(t){return Im(t)?Ip(t):jm(t,{})},getterFor:function(t){return function(e){var r;if(!ge(e)||(r=Ip(e)).type!==t)throw t5("Incompatible receiver, "+t+" required");return r}}},KL=Function.prototype,o0t=Bo&&Object.getOwnPropertyDescriptor,e5=Ze(KL,"name"),Lp={EXISTS:e5,PROPER:e5&&(function(){}).name==="something",CONFIGURABLE:e5&&(!Bo||Bo&&o0t(KL,"name").configurable)},Pn=R3(function(t){var e=Lp.CONFIGURABLE,r=pn.get,n=pn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;se(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ze(u,"name")||e&&u.name!==p)&&_o(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:_o(i,a,u)):f?i[a]=u:q3(a,u)})(Function.prototype,"toString",function(){return se(this)&&r(this).source||Lm(this)})}),i0t=Math.ceil,a0t=Math.floor,r5=function(t){var e=+t;return e!=e||e===0?0:(e>0?a0t:i0t)(e)},u0t=Math.max,s0t=Math.min,Rp=function(t,e){var r=r5(t);return r<0?u0t(r+e,0):s0t(r,e)},l0t=Math.min,YL=function(t){return t>0?l0t(r5(t),9007199254740991):0},Mp=function(t){return YL(t.length)},c0t=function(t){return function(e,r,n){var o,i=xa(e),a=Mp(i),u=Rp(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},f0t=c0t(!1),XL=Pt([].push),$L=function(t,e){var r,n=xa(t),o=0,i=[];for(r in n)!Ze(Rm,r)&&Ze(n,r)&&XL(i,r);for(;e.length>o;)Ze(n,r=e[o++])&&(~f0t(i,r)||XL(i,r));return i},Mm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],d0t=Mm.concat("length","prototype"),Vm={f:Object.getOwnPropertyNames||function(t){return $L(t,d0t)}},p0t={f:Object.getOwnPropertySymbols},h0t=Pt([].concat),g0t=rs("Reflect","ownKeys")||function(t){var e=Vm.f(sr(t)),r=p0t.f;return r?h0t(e,r(t)):e},v0t=function(t,e){for(var r=g0t(e),n=si.f,o=J3.f,i=0;i<r.length;i++){var a=r[i];Ze(t,a)||n(t,a,o(e,a))}},m0t=/#|\.prototype\./,Vp=function(t,e){var r=b0t[y0t(t)];return r==E0t||r!=w0t&&(se(e)?he(e):!!e)},y0t=Vp.normalize=function(t){return String(t).replace(m0t,".").toLowerCase()},b0t=Vp.data={},w0t=Vp.NATIVE="N",E0t=Vp.POLYFILL="P",zm=Vp,C0t=J3.f,Fo=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?et:l?et[u]||q3(u,{}):(et[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=C0t(r,n))&&a.value:r[n],!zm(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;v0t(i,o)}(t.sham||o&&o.sham)&&_o(i,"sham",!0),Pn(r,n,i,t)}},Hm=Array.isArray||function(t){return $n(t)=="Array"},ZL={};ZL[ze("toStringTag")]="z";var n5=String(ZL)==="[object z]",x0t=ze("toStringTag"),S0t=et.Object,D0t=$n(function(){return arguments}())=="Arguments",Um=n5?$n:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=S0t(t),x0t))=="string"?r:D0t?$n(e):(n=$n(e))=="Object"&&se(e.callee)?"Arguments":n},JL=function(){},A0t=[],QL=rs("Reflect","construct"),o5=/^\s*(?:class|function)\b/,O0t=Pt(o5.exec),k0t=!o5.exec(JL),zp=function(t){if(!se(t))return!1;try{return QL(JL,A0t,t),!0}catch{return!1}},i5=!QL||he(function(){var t;return zp(zp.call)||!zp(Object)||!zp(function(){t=!0})||t})?function(t){if(!se(t))return!1;switch(Um(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return k0t||!!O0t(o5,Lm(t))}:zp,tR=function(t,e,r){var n=$3(e);n in t?si.f(t,n,Pm(0,r)):t[n]=r},B0t=ze("species"),eR=Pt([].slice),_0t=Tp>=51||!he(function(){var t=[];return(t.constructor={})[B0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),F0t=ze("species"),a5=et.Array,T0t=Math.max;Fo({target:"Array",proto:!0,forced:!_0t},{slice:function(t,e){var r,n,o,i=xa(this),a=Mp(i),u=Rp(t,a),s=Rp(e===void 0?a:e,a);if(Hm(i)&&(r=i.constructor,(i5(r)&&(r===a5||Hm(r.prototype))||ge(r)&&(r=r[F0t])===null)&&(r=void 0),r===a5||r===void 0))return eR(i,u,s);for(n=new(r===void 0?a5:r)(T0t(s-u,0)),o=0;u<s;u++,o++)u in i&&tR(n,o,i[u]);return n.length=o,n}});var P0t=n5?{}.toString:function(){return"[object "+Um(this)+"]"};n5||Pn(Object.prototype,"toString",P0t,{unsafe:!0});var Wm,N0t=et.String,Aa=function(t){if(Um(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return N0t(t)},rR=function(){var t=sr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},u5=et.RegExp,s5=he(function(){var t=u5("a","y");return t.lastIndex=2,t.exec("abcd")!=null});s5||he(function(){return!u5("a","y").sticky});var nR={BROKEN_CARET:s5||he(function(){var t=u5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:s5},j0t=Object.keys||function(t){return $L(t,Mm)},I0t=Bo?Object.defineProperties:function(t,e){sr(t);for(var r,n=xa(e),o=j0t(e),i=o.length,a=0;i>a;)si.f(t,r=o[a++],n[r]);return t},l5=rs("document","documentElement"),oR=Q3("IE_PROTO"),c5=function(){},iR=function(t){return"<script>"+t+"<\/script>"},aR=function(t){t.write(iR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Gm=function(){try{Wm=new ActiveXObject("htmlfile")}catch{}var t,e;Gm=typeof document<"u"?document.domain&&Wm?aR(Wm):((e=jp("iframe")).style.display="none",l5.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(iR("document.F=Object")),t.close(),t.F):aR(Wm);for(var r=Mm.length;r--;)delete Gm.prototype[Mm[r]];return Gm()};Rm[oR]=!0;var uR,f5,d5=Object.create||function(t,e){var r;return t!==null?(c5.prototype=sr(t),r=new c5,c5.prototype=null,r[oR]=t):r=Gm(),e===void 0?r:I0t(r,e)},L0t=et.RegExp,R0t=he(function(){var t=L0t(".","s");return!(t.dotAll&&t.exec(`
148
+ `)&&t.flags==="s")}),M0t=et.RegExp,V0t=he(function(){var t=M0t("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),z0t=pn.get,H0t=K3("native-string-replace",String.prototype.replace),qm=RegExp.prototype.exec,p5=qm,U0t=Pt("".charAt),W0t=Pt("".indexOf),G0t=Pt("".replace),h5=Pt("".slice),g5=(f5=/b*/g,te(qm,uR=/a/,"a"),te(qm,f5,"a"),uR.lastIndex!==0||f5.lastIndex!==0),sR=nR.BROKEN_CARET,v5=/()??/.exec("")[1]!==void 0;(g5||v5||sR||R0t||V0t)&&(p5=function(t){var e,r,n,o,i,a,u,s=this,l=z0t(s),c=Aa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=te(p5,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=sR&&s.sticky,v=te(rR,s),h=s.source,m=0,y=c;if(p&&(v=G0t(v,"y",""),W0t(v,"g")===-1&&(v+="g"),y=h5(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&U0t(c,s.lastIndex-1)!==`
149
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),v5&&(r=new RegExp("^"+h+"$(?!\\s)",v)),g5&&(n=s.lastIndex),o=te(qm,p?r:s,y),p?o?(o.input=h5(o.input,m),o[0]=h5(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:g5&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),v5&&o&&o.length>1&&te(H0t,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=d5(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Hp=p5;Fo({target:"RegExp",proto:!0,forced:/./.exec!==Hp},{exec:Hp});var m5=Function.prototype,lR=m5.apply,q0t=m5.bind,cR=m5.call,fR=typeof Reflect=="object"&&Reflect.apply||(q0t?cR.bind(lR):function(){return cR.apply(lR,arguments)}),K0t=ze("species"),y5=RegExp.prototype,Y0t=ze("match"),X0t=et.TypeError,$0t=ze("species"),dR=function(t,e){var r,n=sr(t).constructor;return n===void 0||(r=sr(n)[$0t])==null?e:function(o){if(i5(o))return o;throw X0t(Nm(o)+" is not a constructor")}(r)},Z0t=Pt("".charAt),pR=Pt("".charCodeAt),J0t=Pt("".slice),Q0t=function(t){return function(e,r){var n,o,i=Aa(_p(e)),a=r5(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=pR(i,a))<55296||n>56319||a+1===u||(o=pR(i,a+1))<56320||o>57343?t?Z0t(i,a):n:t?J0t(i,a,a+2):o-56320+(n-55296<<10)+65536}},hR={charAt:Q0t(!0)},tvt=hR.charAt,evt=function(t,e,r){return e+(r?tvt(t,e).length:1)},rvt=et.Array,nvt=Math.max,b5=function(t,e,r){for(var n=Mp(t),o=Rp(e,n),i=Rp(r===void 0?n:r,n),a=rvt(nvt(i-o,0)),u=0;o<i;o++,u++)tR(a,u,t[o]);return a.length=u,a},ovt=et.TypeError,gR=function(t,e){var r=t.exec;if(se(r)){var n=te(r,t,e);return n!==null&&sr(n),n}if($n(t)==="RegExp")return te(Hp,t,e);throw ovt("RegExp#exec called on incompatible receiver")},Ql=nR.UNSUPPORTED_Y,ivt=Math.min,vR=[].push,avt=Pt(/./.exec),tc=Pt(vR),Up=Pt("".slice);(function(t,e,r,n){var o=ze(t),i=!he(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!he(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[K0t]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Pt(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,m,y=Aa(_p(this)),g=v===void 0?4294967295:v>>>0;if(g===0)return[];if(p===void 0)return[y];if(!ge(h=p)||!((m=h[Y0t])!==void 0?m:$n(h)=="RegExp"))return te(c,y,p,g);for(var w,E,x,D=[],S=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,F=new RegExp(p.source,S+"g");(w=te(Hp,F,y))&&!((E=F.lastIndex)>k&&(tc(D,Up(y,k,w.index)),w.length>1&&w.index<y.length&&fR(vR,D,b5(w,1)),x=w[0].length,k=E,D.length>=g));)F.lastIndex===w.index&&F.lastIndex++;return k===y.length?!x&&avt(F,"")||tc(D,""):tc(D,Up(y,k)),D.length>g?b5(D,0,g):D}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:te(c,this,p,v)}:c,[function(p,v){var h=_p(this),m=p==null?void 0:Pp(p,l);return m?te(m,p,h,v):te(d,Aa(h),p,v)},function(p,v){var h=sr(this),m=Aa(p),y=f(d,h,m,v,d!==c);if(y.done)return y.value;var g=dR(h,RegExp),w=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(Ql?"g":"y"),x=new g(Ql?"^(?:"+h.source+")":h,E),D=v===void 0?4294967295:v>>>0;if(D===0)return[];if(m.length===0)return gR(x,m)===null?[m]:[];for(var S=0,k=0,F=[];k<m.length;){x.lastIndex=Ql?0:k;var H,G=gR(x,Ql?Up(m,k):m);if(G===null||(H=ivt(YL(x.lastIndex+(Ql?k:0)),m.length))===S)k=evt(m,k,w);else{if(tc(F,Up(m,S,k)),F.length===D)return F;for(var j=1;j<=G.length-1;j++)if(tc(F,G[j]),F.length===D)return F;k=S=H}}return tc(F,Up(m,S)),F}]}(o,""[t],function(l,c,f,d,p){var v=Pt(l),h=c.exec;return h===Hp||h===y5.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Pn(String.prototype,t,s[0]),Pn(y5,o,s[1])}n&&_o(y5[o],"sham",!0)})("split",0,!!he(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ql);/*! *****************************************************************************
150
+ Copyright (c) Microsoft Corporation.
151
+
152
+ Permission to use, copy, modify, and/or distribute this software for any
153
+ purpose with or without fee is hereby granted.
154
+
155
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
156
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
157
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
158
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
159
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
160
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
161
+ PERFORMANCE OF THIS SOFTWARE.
162
+ ***************************************************************************** */var Km=function(){return Km=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Km.apply(this,arguments)};function w5(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function E5(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function uvt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var C5=ze("unscopables"),x5=Array.prototype;x5[C5]==null&&si.f(x5,C5,{configurable:!0,value:d5(null)});var is,mR,yR,S5=function(t){x5[C5][t]=!0},ec={},svt=!he(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),bR=Q3("IE_PROTO"),D5=et.Object,lvt=D5.prototype,Ym=svt?D5.getPrototypeOf:function(t){var e=Y3(t);if(Ze(e,bR))return e[bR];var r=e.constructor;return se(r)&&e instanceof r?r.prototype:e instanceof D5?lvt:null},A5=ze("iterator"),wR=!1;[].keys&&("next"in(yR=[].keys())?(mR=Ym(Ym(yR)))!==Object.prototype&&(is=mR):wR=!0);var cvt=is==null||he(function(){var t={};return is[A5].call(t)!==t});cvt&&(is={}),se(is[A5])||Pn(is,A5,function(){return this});var O5={IteratorPrototype:is,BUGGY_SAFARI_ITERATORS:wR},fvt=si.f,ER=ze("toStringTag"),Xm=function(t,e,r){t&&!Ze(t=r?t:t.prototype,ER)&&fvt(t,ER,{configurable:!0,value:e})},dvt=O5.IteratorPrototype,pvt=function(){return this},hvt=et.String,gvt=et.TypeError,rc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return sr(n),function(i){if(typeof i=="object"||se(i))return i;throw gvt("Can't set "+hvt(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),vvt=Lp.PROPER,mvt=Lp.CONFIGURABLE,CR=O5.IteratorPrototype,k5=O5.BUGGY_SAFARI_ITERATORS,Wp=ze("iterator"),yvt=function(){return this},xR=function(t,e,r,n,o,i,a){(function(m,y,g,w){var E=y+" Iterator";m.prototype=d5(dvt,{next:Pm(1,g)}),Xm(m,E,!1),ec[E]=pvt})(r,e,n);var u,s,l=function(m){if(m===o&&v)return v;if(!k5&&m in d)return d[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Wp]||d["@@iterator"]||o&&d[o],v=!k5&&p||l(o),h=e=="Array"&&d.entries||p;return h&&(u=Ym(h.call(new t)))!==Object.prototype&&u.next&&(Ym(u)!==CR&&(rc?rc(u,CR):se(u[Wp])||Pn(u,Wp,yvt)),Xm(u,c,!0)),vvt&&o=="values"&&p&&p.name!=="values"&&(mvt?_o(d,"name","values"):(f=!0,v=function(){return te(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Fo({target:e,proto:!0,forced:k5||f},s)),d[Wp]!==v&&Pn(d,Wp,v,{name:o}),ec[e]=v,s},bvt=pn.set,wvt=pn.getterFor("Array Iterator"),Gp=xR(Array,"Array",function(t,e){bvt(this,{type:"Array Iterator",target:xa(t),index:0,kind:e})},function(){var t=wvt(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");ec.Arguments=ec.Array,S5("keys"),S5("values"),S5("entries");var Evt=hR.charAt,Cvt=pn.set,xvt=pn.getterFor("String Iterator");xR(String,"String",function(t){Cvt(this,{type:"String Iterator",string:Aa(t),index:0})},function(){var t,e=xvt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Evt(r,n),e.index+=t.length,{value:t,done:!1})});var $m=function(t,e,r){for(var n in e)Pn(t,n,e[n],r);return t},SR=Vm.f,DR=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Svt={f:function(t){return DR&&$n(t)=="Window"?function(e){try{return SR(e)}catch{return b5(DR)}}(t):SR(xa(t))}},AR=he(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Zm=Object.isExtensible,as=he(function(){Zm(1)})||AR?function(t){return!!ge(t)&&(!AR||$n(t)!="ArrayBuffer")&&(!Zm||Zm(t))}:Zm,Dvt=!he(function(){return Object.isExtensible(Object.preventExtensions({}))}),B5=R3(function(t){var e=si.f,r=!1,n=X3("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Vm.f,s=Pt([].splice),l={};l[n]=1,u(l).length&&(Vm.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Fo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Svt.f}))},fastKey:function(u,s){if(!ge(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ze(u,n)){if(!as(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Ze(u,n)){if(!as(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Dvt&&r&&as(u)&&!Ze(u,n)&&i(u),u}};Rm[n]=!0}),OR=Pt(Pt.bind),qp=function(t,e){return Sa(t),e===void 0?t:OR?OR(t,e):function(){return t.apply(e,arguments)}},Avt=ze("iterator"),Ovt=Array.prototype,kvt=ze("iterator"),kR=function(t){if(t!=null)return Pp(t,kvt)||Pp(t,"@@iterator")||ec[Um(t)]},Bvt=et.TypeError,BR=function(t,e,r){var n,o;sr(t);try{if(!(n=Pp(t,"return"))){if(e==="throw")throw r;return r}n=te(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return sr(n),r},_vt=et.TypeError,Jm=function(t,e){this.stopped=t,this.result=e},_R=Jm.prototype,Qm=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),h=qp(e,f),m=function(g){return n&&BR(n,"normal",g),new Jm(!0,g)},y=function(g){return d?(sr(g),v?h(g[0],g[1],m):h(g[0],g[1])):v?h(g,m):h(g)};if(p)n=t;else{if(!(o=kR(t)))throw _vt(Nm(t)+" is not iterable");if((c=o)!==void 0&&(ec.Array===c||Ovt[Avt]===c)){for(i=0,a=Mp(t);a>i;i++)if((u=y(t[i]))&&Fp(_R,u))return u;return new Jm(!1)}n=function(g,w){var E=arguments.length<2?kR(g):w;if(Sa(E))return sr(te(E,g));throw Bvt(Nm(g)+" is not iterable")}(t,o)}for(s=n.next;!(l=te(s,n)).done;){try{u=y(l.value)}catch(g){BR(n,"throw",g)}if(typeof u=="object"&&u&&Fp(_R,u))return u}return new Jm(!1)},Fvt=et.TypeError,_5=function(t,e){if(Fp(e,t))return t;throw Fvt("Incorrect invocation")},FR=ze("iterator"),TR=!1;try{var Tvt=0,PR={next:function(){return{done:!!Tvt++}},return:function(){TR=!0}};PR[FR]=function(){return this},Array.from(PR,function(){throw 2})}catch{}var NR=function(t,e){if(!TR)return!1;var r=!1;try{var n={};n[FR]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},Pvt=ze("species"),jR=et.Array,Nvt=function(t,e){return new(function(r){var n;return Hm(r)&&(n=r.constructor,(i5(n)&&(n===jR||Hm(n.prototype))||ge(n)&&(n=n[Pvt])===null)&&(n=void 0)),n===void 0?jR:n}(t))(e===0?0:e)},IR=Pt([].push),F5=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Y3(s),h=H3(v),m=qp(l,c),y=Mp(h),g=0,w=f||Nvt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:IR(E,d)}else switch(t){case 4:return!1;case 7:IR(E,d)}return i?-1:n||o?o:E}},T5={forEach:F5(0),find:F5(5),findIndex:F5(6)},ty=B5.getWeakData,jvt=pn.set,Ivt=pn.getterFor,Lvt=T5.find,Rvt=T5.findIndex,Mvt=Pt([].splice),Vvt=0,ey=function(t){return t.frozen||(t.frozen=new LR)},LR=function(){this.entries=[]},P5=function(t,e){return Lvt(t.entries,function(r){return r[0]===e})};LR.prototype={get:function(t){var e=P5(this,t);if(e)return e[1]},has:function(t){return!!P5(this,t)},set:function(t,e){var r=P5(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Rvt(this.entries,function(r){return r[0]===t});return~e&&Mvt(this.entries,e,1),!!~e}};var Kp,RR={getConstructor:function(t,e,r,n){var o=t(function(s,l){_5(s,i),jvt(s,{type:e,id:Vvt++,frozen:void 0}),l!=null&&Qm(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=Ivt(e),u=function(s,l,c){var f=a(s),d=ty(sr(l),!0);return d===!0?ey(f).set(l,c):d[f.id]=c,s};return $m(i,{delete:function(s){var l=a(this);if(!ge(s))return!1;var c=ty(s);return c===!0?ey(l).delete(s):c&&Ze(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ge(s))return!1;var c=ty(s);return c===!0?ey(l).has(s):c&&Ze(c,l.id)}}),$m(i,r?{get:function(s){var l=a(this);if(ge(s)){var c=ty(s);return c===!0?ey(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},ry=pn.enforce,zvt=!et.ActiveXObject&&"ActiveXObject"in et,MR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Hvt=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=Pt(u[m]);Pn(u,m,m=="add"?function(g){return y(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!ge(g))&&y(this,g===0?0:g)}:m=="get"?function(g){return o&&!ge(g)?void 0:y(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!ge(g))&&y(this,g===0?0:g)}:function(g,w){return y(this,g===0?0:g,w),this})};if(zm(t,!se(a)||!(o||u.forEach&&!he(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),B5.enable();else if(zm(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=he(function(){f.has(1)}),v=NR(function(m){new a(m)}),h=!o&&he(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){_5(m,u);var g=function(w,E,x){var D,S;return rc&&se(D=E.constructor)&&D!==x&&ge(S=D.prototype)&&S!==x.prototype&&rc(w,S),w}(new a,m,s);return y!=null&&Qm(y,g[i],{that:g,AS_ENTRIES:n}),g})).prototype=u,u.constructor=s),(p||h)&&(c("delete"),c("has"),n&&c("get")),(h||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Fo({global:!0,forced:s!=a},l),Xm(s,t),o||r.setStrong(s,t,n),s}("WeakMap",MR,RR);if(WL&&zvt){Kp=RR.getConstructor(MR,"WeakMap",!0),B5.enable();var Yp=Hvt.prototype,VR=Pt(Yp.delete),ny=Pt(Yp.has),zR=Pt(Yp.get),HR=Pt(Yp.set);$m(Yp,{delete:function(t){if(ge(t)&&!as(t)){var e=ry(this);return e.frozen||(e.frozen=new Kp),VR(this,t)||e.frozen.delete(t)}return VR(this,t)},has:function(t){if(ge(t)&&!as(t)){var e=ry(this);return e.frozen||(e.frozen=new Kp),ny(this,t)||e.frozen.has(t)}return ny(this,t)},get:function(t){if(ge(t)&&!as(t)){var e=ry(this);return e.frozen||(e.frozen=new Kp),ny(this,t)?zR(this,t):e.frozen.get(t)}return zR(this,t)},set:function(t,e){if(ge(t)&&!as(t)){var r=ry(this);r.frozen||(r.frozen=new Kp),ny(this,t)?HR(this,t,e):r.frozen.set(t,e)}else HR(this,t,e);return this}})}var oy={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},N5=jp("span").classList,UR=N5&&N5.constructor&&N5.constructor.prototype,WR=UR===Object.prototype?void 0:UR,j5=ze("iterator"),GR=ze("toStringTag"),I5=Gp.values,qR=function(t,e){if(t){if(t[j5]!==I5)try{_o(t,j5,I5)}catch{t[j5]=I5}if(t[GR]||_o(t,GR,e),oy[e]){for(var r in Gp)if(t[r]!==Gp[r])try{_o(t,r,Gp[r])}catch{t[r]=Gp[r]}}}};for(var L5 in oy)qR(et[L5]&&et[L5].prototype,L5);qR(WR,"DOMTokenList");var KR=function(t,e){var r=[][t];return!!r&&he(function(){r.call(null,e||function(){throw 1},1)})},Uvt=T5.forEach,R5=KR("forEach")?[].forEach:function(t){return Uvt(this,t,arguments.length>1?arguments[1]:void 0)},YR=function(t){if(t&&t.forEach!==R5)try{_o(t,"forEach",R5)}catch{t.forEach=R5}};for(var M5 in oy)oy[M5]&&YR(et[M5]&&et[M5].prototype);YR(WR);var Xp,nc,XR,V5,iy=et.Promise,$R=ze("species"),ZR=/(?:ipad|iphone|ipod).*applewebkit/i.test(Zl),Oa=$n(et.process)=="process",z5=et.setImmediate,JR=et.clearImmediate,Wvt=et.process,H5=et.Dispatch,Gvt=et.Function,QR=et.MessageChannel,qvt=et.String,U5=0,$p={};try{Xp=et.location}catch{}var W5=function(t){if(Ze($p,t)){var e=$p[t];delete $p[t],e()}},G5=function(t){return function(){W5(t)}},tM=function(t){W5(t.data)},eM=function(t){et.postMessage(qvt(t),Xp.protocol+"//"+Xp.host)};z5&&JR||(z5=function(t){var e=eR(arguments,1);return $p[++U5]=function(){fR(se(t)?t:Gvt(t),void 0,e)},nc(U5),U5},JR=function(t){delete $p[t]},Oa?nc=function(t){Wvt.nextTick(G5(t))}:H5&&H5.now?nc=function(t){H5.now(G5(t))}:QR&&!ZR?(V5=(XR=new QR).port2,XR.port1.onmessage=tM,nc=qp(V5.postMessage,V5)):et.addEventListener&&se(et.postMessage)&&!et.importScripts&&Xp&&Xp.protocol!=="file:"&&!he(eM)?(nc=eM,et.addEventListener("message",tM,!1)):nc="onreadystatechange"in jp("script")?function(t){l5.appendChild(jp("script")).onreadystatechange=function(){l5.removeChild(this),W5(t)}}:function(t){setTimeout(G5(t),0)});var Zp,us,Jp,oc,q5,K5,Y5,rM,nM={set:z5},Kvt=/ipad|iphone|ipod/i.test(Zl)&&et.Pebble!==void 0,Yvt=/web0s(?!.*chrome)/i.test(Zl),Xvt=J3.f,X5=nM.set,oM=et.MutationObserver||et.WebKitMutationObserver,iM=et.document,aM=et.process,ay=et.Promise,uM=Xvt(et,"queueMicrotask"),sM=uM&&uM.value;sM||(Zp=function(){var t,e;for(Oa&&(t=aM.domain)&&t.exit();us;){e=us.fn,us=us.next;try{e()}catch(r){throw us?oc():Jp=void 0,r}}Jp=void 0,t&&t.enter()},ZR||Oa||Yvt||!oM||!iM?!Kvt&&ay&&ay.resolve?((Y5=ay.resolve(void 0)).constructor=ay,rM=qp(Y5.then,Y5),oc=function(){rM(Zp)}):Oa?oc=function(){aM.nextTick(Zp)}:(X5=qp(X5,et),oc=function(){X5(Zp)}):(q5=!0,K5=iM.createTextNode(""),new oM(Zp).observe(K5,{characterData:!0}),oc=function(){K5.data=q5=!q5}));var $5,lM,cM,fM,dM=sM||function(t){var e={fn:t,next:void 0};Jp&&(Jp.next=e),us||(us=e,oc()),Jp=e},$vt=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=Sa(e),this.reject=Sa(r)},Z5={f:function(t){return new $vt(t)}},J5=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Zvt=typeof window=="object",pM=nM.set,Jvt=ze("species"),li="Promise",hM=pn.getterFor(li),Qvt=pn.set,tmt=pn.getterFor(li),ss=iy&&iy.prototype,To=iy,Qp=ss,gM=et.TypeError,Q5=et.document,t8=et.process,ic=Z5.f,emt=ic,rmt=!!(Q5&&Q5.createEvent&&et.dispatchEvent),vM=se(et.PromiseRejectionEvent),mM=!1,th=zm(li,function(){var t=Lm(To),e=t!==String(To);if(!e&&Tp===66)return!0;if(Tp>=51&&/native code/.test(t))return!1;var r=new To(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[Jvt]=n,!(mM=r.then(function(){})instanceof n)||!e&&Zvt&&!vM}),nmt=th||!NR(function(t){To.all(t).catch(function(){})}),yM=function(t){var e;return!(!ge(t)||!se(e=t.then))&&e},e8=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;dM(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&imt(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(gM("Promise-chain cycle")):(u=yM(a))?te(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&omt(t)})}},bM=function(t,e,r){var n,o;rmt?((n=Q5.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),et.dispatchEvent(n)):n={promise:e,reason:r},!vM&&(o=et["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},omt=function(t){te(pM,et,function(){var e,r=t.facade,n=t.value;if(wM(t)&&(e=J5(function(){Oa?t8.emit("unhandledRejection",n,r):bM("unhandledrejection",r,n)}),t.rejection=Oa||wM(t)?2:1,e.error))throw e.value})},wM=function(t){return t.rejection!==1&&!t.parent},imt=function(t){te(pM,et,function(){var e=t.facade;Oa?t8.emit("rejectionHandled",e):bM("rejectionhandled",e,t.value)})},ac=function(t,e,r){return function(n){t(e,n,r)}},uc=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,e8(t,!0))},r8=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw gM("Promise can't be resolved itself");var n=yM(e);n?dM(function(){var o={done:!1};try{te(n,e,ac(r8,o,t),ac(uc,o,t))}catch(i){uc(o,i,t)}}):(t.value=e,t.state=1,e8(t,!1))}catch(o){uc({done:!1},o,t)}}};if(th&&(Qp=(To=function(t){_5(this,Qp),Sa(t),te($5,this);var e=hM(this);try{t(ac(r8,e),ac(uc,e))}catch(r){uc(e,r)}}).prototype,($5=function(t){Qvt(this,{type:li,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=$m(Qp,{then:function(t,e){var r=tmt(this),n=r.reactions,o=ic(dR(this,To));return o.ok=!se(t)||t,o.fail=se(e)&&e,o.domain=Oa?t8.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&e8(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),lM=function(){var t=new $5,e=hM(t);this.promise=t,this.resolve=ac(r8,e),this.reject=ac(uc,e)},Z5.f=ic=function(t){return t===To||t===cM?new lM(t):emt(t)},se(iy)&&ss!==Object.prototype)){fM=ss.then,mM||(Pn(ss,"then",function(t,e){var r=this;return new To(function(n,o){te(fM,r,n,o)}).then(t,e)},{unsafe:!0}),Pn(ss,"catch",Qp.catch,{unsafe:!0}));try{delete ss.constructor}catch{}rc&&rc(ss,Qp)}Fo({global:!0,wrap:!0,forced:th},{Promise:To}),Xm(To,li,!1),function(t){var e=rs("Promise"),r=si.f;Bo&&e&&!e[$R]&&r(e,$R,{configurable:!0,get:function(){return this}})}(),cM=rs(li),Fo({target:li,stat:!0,forced:th},{reject:function(t){var e=ic(this);return te(e.reject,void 0,t),e.promise}}),Fo({target:li,stat:!0,forced:th},{resolve:function(t){return function(e,r){if(sr(e),ge(r)&&r.constructor===e)return r;var n=Z5.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),Fo({target:li,stat:!0,forced:nmt},{all:function(t){var e=this,r=ic(e),n=r.resolve,o=r.reject,i=J5(function(){var a=Sa(e.resolve),u=[],s=0,l=1;Qm(t,function(c){var f=s++,d=!1;l++,te(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=ic(e),n=r.reject,o=J5(function(){var i=Sa(e.resolve);Qm(t,function(a){te(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var amt=Lp.PROPER,n8=RegExp.prototype,EM=n8.toString,umt=Pt(rR),smt=he(function(){return EM.call({source:"a",flags:"b"})!="/a/b"}),lmt=amt&&EM.name!="toString";(smt||lmt)&&Pn(RegExp.prototype,"toString",function(){var t=sr(this),e=Aa(t.source),r=t.flags;return"/"+e+"/"+Aa(r===void 0&&Fp(n8,t)&&!("flags"in n8)?umt(t):r)},{unsafe:!0});var cmt=Lp.EXISTS,fmt=si.f,CM=Function.prototype,dmt=Pt(CM.toString),xM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,pmt=Pt(xM.exec);Bo&&!cmt&&fmt(CM,"name",{configurable:!0,get:function(){try{return pmt(xM,dmt(this))[1]}catch{return""}}});var SM=new WeakMap;function DM(t){return t.getMenuConfig("uploadImage")}function hmt(t,e){return w5(this,void 0,void 0,function(){return E5(this,function(r){return[2,new Promise(function(n){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Fu(t,a,e.name,u),n("ok")}}})]})})}function gmt(t,e){return w5(this,void 0,void 0,function(){var r,n,o,i;return E5(this,function(a){switch(a.label){case 0:return r=function(u){var s=SM.get(u);if(s!=null)return s;var l=DM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=kB(Km(Km({},l),{onProgress:function(h){u.showProgressBar(h),f&&f(h)},onSuccess:function(h,m){if(p)return p(m,function(H,G,j){return Fu(u,H,G,j)}),void c(h,m);var y=m.errno,g=y===void 0?1:y,w=m.data,E=w===void 0?{}:w;if(g===0){if(Array.isArray(E))E.forEach(function(H){var G=H.url,j=G===void 0?"":G,L=H.alt,z=L===void 0?"":L,K=H.href;Fu(u,j,z,K===void 0?"":K)});else{var x=E.url,D=x===void 0?"":x,S=E.alt,k=S===void 0?"":S,F=E.href;Fu(u,D,k,F===void 0?"":F)}c(h,m)}else d(h,m)},onError:function(h,m,y){v(h,m,y)}})),SM.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}function AM(t,e){var r,n;return w5(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return E5(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=DM(t),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=uvt(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,hmt(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,h,m){return Fu(t,v,h,m)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,gmt(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var vmt=Pt([].join),mmt=H3!=Object,ymt=KR("join",",");Fo({target:"Array",proto:!0,forced:mmt||!ymt},{join:function(t){return vmt(xa(this),t===void 0?",":t)}}),mn&&(_.fn.append=mn),co&&(_.fn.on=co),Rs&&(_.fn.remove=Rs),lo&&(_.fn.val=lo),d7&&(_.fn.click=d7),Ns&&(_.fn.hide=Ns);var bmt=function(){function t(){this.title=tt("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return W0(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f,d){return Fu(e,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=_("body"),l=_('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;AM(e,c)})}},t}(),wmt={menus:[{key:"uploadImage",factory:function(){return new bmt},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,r=t;return r.insertData=function(n){if(W0(r))e(n);else if(n.getData("text/plain"))e(n);else{var o=n.files;o.length<=0?e(n):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?AM(t,o):e(n)}},r}};Ur("en",{highLightModule:{selectLang:"Language"}}),Ur("zh-CN",{highLightModule:{selectLang:"选择语言"}});var uy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function o8(t){var e={exports:{}};return t(e,e.exports),e.exports}var ka,sy,ly=function(t){return t&&t.Math==Math&&t},jt=ly(typeof globalThis=="object"&&globalThis)||ly(typeof window=="object"&&window)||ly(typeof self=="object"&&self)||ly(typeof uy=="object"&&uy)||function(){return this}()||Function("return this")(),Emt=Object.defineProperty,i8=function(t,e){try{Emt(jt,t,{value:e,configurable:!0,writable:!0})}catch{jt[t]=e}return e},Ba=jt["__core-js_shared__"]||i8("__core-js_shared__",{}),a8=o8(function(t){(t.exports=function(e,r){return Ba[e]||(Ba[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),OM=Function.prototype,u8=OM.bind,s8=OM.call,Cmt=u8&&u8.bind(s8),Qt=u8?function(t){return t&&Cmt(s8,t)}:function(t){return t&&function(){return s8.apply(t,arguments)}},xmt=jt.TypeError,sc=function(t){if(t==null)throw xmt("Can't call method on "+t);return t},Smt=jt.Object,l8=function(t){return Smt(sc(t))},Dmt=Qt({}.hasOwnProperty),Nn=Object.hasOwn||function(t,e){return Dmt(l8(t),e)},Amt=0,Omt=Math.random(),kmt=Qt(1 .toString),kM=function(t){return"Symbol("+(t===void 0?"":t)+")_"+kmt(++Amt+Omt,36)},Nr=function(t){return typeof t=="function"},Bmt=function(t){return Nr(t)?t:void 0},eh=function(t,e){return arguments.length<2?Bmt(jt[t]):jt[t]&&jt[t][e]},c8=eh("navigator","userAgent")||"",BM=jt.process,_M=jt.Deno,FM=BM&&BM.versions||_M&&_M.version,TM=FM&&FM.v8;TM&&(sy=(ka=TM.split("."))[0]>0&&ka[0]<4?1:+(ka[0]+ka[1])),!sy&&c8&&(!(ka=c8.match(/Edge\/(\d+)/))||ka[1]>=74)&&(ka=c8.match(/Chrome\/(\d+)/))&&(sy=+ka[1]);var PM=sy,lr=function(t){try{return!!t()}catch{return!0}},f8=!!Object.getOwnPropertySymbols&&!lr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&PM&&PM<41}),d8=f8&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rh=a8("wks"),ls=jt.Symbol,NM=ls&&ls.for,_mt=d8?ls:ls&&ls.withoutSetter||kM,_a=function(t){if(!Nn(rh,t)||!f8&&typeof rh[t]!="string"){var e="Symbol."+t;f8&&Nn(ls,t)?rh[t]=ls[t]:rh[t]=d8&&NM?NM(e):_mt(e)}return rh[t]},jM={};jM[_a("toStringTag")]="z";var p8=String(jM)==="[object z]",Po=!lr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ci=function(t){return typeof t=="object"?t!==null:Nr(t)},h8=jt.document,Fmt=ci(h8)&&ci(h8.createElement),g8=function(t){return Fmt?h8.createElement(t):{}},IM=!Po&&!lr(function(){return Object.defineProperty(g8("div"),"a",{get:function(){return 7}}).a!=7}),Tmt=jt.String,Pmt=jt.TypeError,Zn=function(t){if(ci(t))return t;throw Pmt(Tmt(t)+" is not an object")},nh=Function.prototype.call,cr=nh.bind?nh.bind(nh):function(){return nh.apply(nh,arguments)},LM=Qt({}.isPrototypeOf),Nmt=jt.Object,v8=d8?function(t){return typeof t=="symbol"}:function(t){var e=eh("Symbol");return Nr(e)&&LM(e.prototype,Nmt(t))},jmt=jt.String,RM=function(t){try{return jmt(t)}catch{return"Object"}},Imt=jt.TypeError,MM=function(t){if(Nr(t))return t;throw Imt(RM(t)+" is not a function")},VM=function(t,e){var r=t[e];return r==null?void 0:MM(r)},Lmt=jt.TypeError,Rmt=jt.TypeError,Mmt=_a("toPrimitive"),m8=function(t){var e=function(r,n){if(!ci(r)||v8(r))return r;var o,i=VM(r,Mmt);if(i){if(o=cr(i,r,n),!ci(o)||v8(o))return o;throw Rmt("Can't convert object to primitive value")}return function(a,u){var s,l;if(Nr(s=a.toString)&&!ci(l=cr(s,a))||Nr(s=a.valueOf)&&!ci(l=cr(s,a)))return l;throw Lmt("Can't convert object to primitive value")}(r)}(t,"string");return v8(e)?e:e+""},Vmt=jt.TypeError,zM=Object.defineProperty,cy={f:Po?zM:function(t,e,r){if(Zn(t),e=m8(e),Zn(r),IM)try{return zM(t,e,r)}catch{}if("get"in r||"set"in r)throw Vmt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},y8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},lc=Po?function(t,e,r){return cy.f(t,e,y8(1,r))}:function(t,e,r){return t[e]=r,t},zmt=Qt(Function.toString);Nr(Ba.inspectSource)||(Ba.inspectSource=function(t){return zmt(t)});var b8,fy,w8,E8=Ba.inspectSource,HM=jt.WeakMap,Hmt=Nr(HM)&&/native code/.test(E8(HM)),UM=a8("keys"),WM=function(t){return UM[t]||(UM[t]=kM(t))},C8={},GM=jt.TypeError,Umt=jt.WeakMap;if(Hmt||Ba.state){var cs=Ba.state||(Ba.state=new Umt),Wmt=Qt(cs.get),qM=Qt(cs.has),Gmt=Qt(cs.set);b8=function(t,e){if(qM(cs,t))throw new GM("Object already initialized");return e.facade=t,Gmt(cs,t,e),e},fy=function(t){return Wmt(cs,t)||{}},w8=function(t){return qM(cs,t)}}else{var cc=WM("state");C8[cc]=!0,b8=function(t,e){if(Nn(t,cc))throw new GM("Object already initialized");return e.facade=t,lc(t,cc,e),e},fy=function(t){return Nn(t,cc)?t[cc]:{}},w8=function(t){return Nn(t,cc)}}var x8={get:fy,enforce:function(t){return w8(t)?fy(t):b8(t,{})}},KM=Function.prototype,qmt=Po&&Object.getOwnPropertyDescriptor,YM=Nn(KM,"name"),XM={PROPER:YM&&(function(){}).name==="something",CONFIGURABLE:YM&&(!Po||Po&&qmt(KM,"name").configurable)},oh=o8(function(t){var e=XM.CONFIGURABLE,r=x8.get,n=x8.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Nr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nn(u,"name")||e&&u.name!==p)&&lc(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==jt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:lc(i,a,u)):f?i[a]=u:i8(a,u)})(Function.prototype,"toString",function(){return Nr(this)&&r(this).source||E8(this)})}),Kmt=Qt({}.toString),Ymt=Qt("".slice),Fa=function(t){return Ymt(Kmt(t),8,-1)},Xmt=_a("toStringTag"),$mt=jt.Object,Zmt=Fa(function(){return arguments}())=="Arguments",S8=p8?Fa:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=$mt(t),Xmt))=="string"?r:Zmt?Fa(e):(n=Fa(e))=="Object"&&Nr(e.callee)?"Arguments":n},Jmt=p8?{}.toString:function(){return"[object "+S8(this)+"]"};p8||oh(Object.prototype,"toString",Jmt,{unsafe:!0});var $M,ZM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},D8=g8("span").classList,JM=D8&&D8.constructor&&D8.constructor.prototype,Qmt=JM===Object.prototype?void 0:JM,QM=Qt(Qt.bind),A8=jt.Object,tyt=Qt("".split),O8=lr(function(){return!A8("z").propertyIsEnumerable(0)})?function(t){return Fa(t)=="String"?tyt(t,""):A8(t)}:A8,eyt=Math.ceil,ryt=Math.floor,k8=function(t){var e=+t;return e!=e||e===0?0:(e>0?ryt:eyt)(e)},nyt=Math.min,tV=function(t){return t>0?nyt(k8(t),9007199254740991):0},B8=function(t){return tV(t.length)},eV=Array.isArray||function(t){return Fa(t)=="Array"},rV=function(){},oyt=[],nV=eh("Reflect","construct"),_8=/^\s*(?:class|function)\b/,iyt=Qt(_8.exec),ayt=!_8.exec(rV),ih=function(t){if(!Nr(t))return!1;try{return nV(rV,oyt,t),!0}catch{return!1}},oV=!nV||lr(function(){var t;return ih(ih.call)||!ih(Object)||!ih(function(){t=!0})||t})?function(t){if(!Nr(t))return!1;switch(S8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ayt||!!iyt(_8,E8(t))}:ih,uyt=_a("species"),iV=jt.Array,syt=function(t,e){return new(function(r){var n;return eV(r)&&(n=r.constructor,(oV(n)&&(n===iV||eV(n.prototype))||ci(n)&&(n=n[uyt])===null)&&(n=void 0)),n===void 0?iV:n}(t))(e===0?0:e)},aV=Qt([].push),Ta=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=l8(s),h=O8(v),m=function(x,D){return MM(x),D===void 0?x:QM?QM(x,D):function(){return x.apply(D,arguments)}}(l,c),y=B8(h),g=0,w=f||syt,E=e?w(s,y):r||a?w(s,0):void 0;y>g;g++)if((u||g in h)&&(p=m(d=h[g],g,v),t))if(e)E[g]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return g;case 2:aV(E,d)}else switch(t){case 4:return!1;case 7:aV(E,d)}return i?-1:n||o?o:E}},lyt=[Ta(0),Ta(1),Ta(2),Ta(3),Ta(4),Ta(5),Ta(6),Ta(7)][0],F8=($M=[].forEach)&&lr(function(){$M.call(null,function(){throw 1},1)})?[].forEach:function(t){return lyt(this,t,arguments.length>1?arguments[1]:void 0)},uV=function(t){if(t&&t.forEach!==F8)try{lc(t,"forEach",F8)}catch{t.forEach=F8}};for(var T8 in ZM)ZM[T8]&&uV(jt[T8]&&jt[T8].prototype);uV(Qmt);var sV={}.propertyIsEnumerable,lV=Object.getOwnPropertyDescriptor,cV={f:lV&&!sV.call({1:2},1)?function(t){var e=lV(this,t);return!!e&&e.enumerable}:sV},dy=function(t){return O8(sc(t))},fV=Object.getOwnPropertyDescriptor,dV={f:Po?fV:function(t,e){if(t=dy(t),e=m8(e),IM)try{return fV(t,e)}catch{}if(Nn(t,e))return y8(!cr(cV.f,t,e),t[e])}},cyt=Math.max,fyt=Math.min,P8=function(t,e){var r=k8(t);return r<0?cyt(r+e,0):fyt(r,e)},dyt=function(t){return function(e,r,n){var o,i=dy(e),a=B8(i),u=P8(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},pyt=dyt(!1),pV=Qt([].push),hV=function(t,e){var r,n=dy(t),o=0,i=[];for(r in n)!Nn(C8,r)&&Nn(n,r)&&pV(i,r);for(;e.length>o;)Nn(n,r=e[o++])&&(~pyt(i,r)||pV(i,r));return i},py=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hyt=py.concat("length","prototype"),gyt={f:Object.getOwnPropertyNames||function(t){return hV(t,hyt)}},gV={f:Object.getOwnPropertySymbols},vyt=Qt([].concat),myt=eh("Reflect","ownKeys")||function(t){var e=gyt.f(Zn(t)),r=gV.f;return r?vyt(e,r(t)):e},yyt=function(t,e){for(var r=myt(e),n=cy.f,o=dV.f,i=0;i<r.length;i++){var a=r[i];Nn(t,a)||n(t,a,o(e,a))}},byt=/#|\.prototype\./,ah=function(t,e){var r=Eyt[wyt(t)];return r==xyt||r!=Cyt&&(Nr(e)?lr(e):!!e)},wyt=ah.normalize=function(t){return String(t).replace(byt,".").toLowerCase()},Eyt=ah.data={},Cyt=ah.NATIVE="N",xyt=ah.POLYFILL="P",Syt=ah,Dyt=dV.f,hy=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?jt:l?jt[u]||i8(u,{}):(jt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Dyt(r,n))&&a.value:r[n],!Syt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;yyt(i,o)}(t.sham||o&&o.sham)&&lc(i,"sham",!0),oh(r,n,i,t)}},gy=Object.keys||function(t){return hV(t,py)},fc=Object.assign,vV=Object.defineProperty,Ayt=Qt([].concat),mV=!fc||lr(function(){if(Po&&fc({b:1},fc(vV({},"a",{enumerable:!0,get:function(){vV(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),fc({},t)[r]!=7||gy(fc({},e)).join("")!=n})?function(t,e){for(var r=l8(t),n=arguments.length,o=1,i=gV.f,a=cV.f;n>o;)for(var u,s=O8(arguments[o++]),l=i?Ayt(gy(s),i(s)):gy(s),c=l.length,f=0;c>f;)u=l[f++],Po&&!cr(a,s,u)||(r[u]=s[u]);return r}:fc;hy({target:"Object",stat:!0,forced:Object.assign!==mV},{assign:mV});var yV=o8(function(t){var e=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function m(y){return y instanceof u?new u(y.type,m(y.content),y.alias):Array.isArray(y)?y.map(m):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(y,g){var w,E;switch(g=g||{},a.util.type(y)){case"Object":if(E=a.util.objId(y),g[E])return g[E];for(var x in w={},g[E]=w,y)y.hasOwnProperty(x)&&(w[x]=m(y[x],g));return w;case"Array":return E=a.util.objId(y),g[E]?g[E]:(w=[],g[E]=w,y.forEach(function(D,S){w[S]=m(D,g)}),w);default:return y}},getLanguage:function(m){for(;m&&!n.test(m.className);)m=m.parentElement;return m?(m.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(m){var y=document.getElementsByTagName("script");for(var g in y)if(y[g].src==m)return y[g]}return null}},isActive:function(m,y,g){for(var w="no-"+y;m;){var E=m.classList;if(E.contains(y))return!0;if(E.contains(w))return!1;m=m.parentElement}return!!g}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(m,y){var g=a.util.clone(a.languages[m]);for(var w in y)g[w]=y[w];return g},insertBefore:function(m,y,g,w){var E=(w=w||a.languages)[m],x={};for(var D in E)if(E.hasOwnProperty(D)){if(D==y)for(var S in g)g.hasOwnProperty(S)&&(x[S]=g[S]);g.hasOwnProperty(D)||(x[D]=E[D])}var k=w[m];return w[m]=x,a.languages.DFS(a.languages,function(F,H){H===k&&F!=m&&(this[F]=x)}),x},DFS:function m(y,g,w,E){E=E||{};var x=a.util.objId;for(var D in y)if(y.hasOwnProperty(D)){g.call(y,D,y[D],w||D);var S=y[D],k=a.util.type(S);k!=="Object"||E[x(S)]?k!=="Array"||E[x(S)]||(E[x(S)]=!0,m(S,g,D,E)):(E[x(S)]=!0,m(S,g,null,E))}}},plugins:{},highlightAll:function(m,y){a.highlightAllUnder(document,m,y)},highlightAllUnder:function(m,y,g){var w={callback:g,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),a.hooks.run("before-all-elements-highlight",w);for(var E,x=0;E=w.elements[x++];)a.highlightElement(E,y===!0,w.callback)},highlightElement:function(m,y,g){var w=a.util.getLanguage(m),E=a.languages[w];m.className=m.className.replace(n,"").replace(/\s+/g," ")+" language-"+w;var x=m.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&(x.className=x.className.replace(n,"").replace(/\s+/g," ")+" language-"+w);var D={element:m,language:w,grammar:E,code:m.textContent};function S(F){D.highlightedCode=F,a.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,a.hooks.run("after-highlight",D),a.hooks.run("complete",D),g&&g.call(D.element)}if(a.hooks.run("before-sanity-check",D),(x=D.element.parentElement)&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!D.code)return a.hooks.run("complete",D),void(g&&g.call(D.element));if(a.hooks.run("before-highlight",D),D.grammar)if(y&&r.Worker){var k=new Worker(a.filename);k.onmessage=function(F){S(F.data)},k.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else S(a.highlight(D.code,D.grammar,D.language));else S(a.util.encode(D.code))},highlight:function(m,y,g){var w={code:m,grammar:y,language:g};return a.hooks.run("before-tokenize",w),w.tokens=a.tokenize(w.code,w.grammar),a.hooks.run("after-tokenize",w),u.stringify(a.util.encode(w.tokens),w.language)},tokenize:function(m,y){var g=y.rest;if(g){for(var w in g)y[w]=g[w];delete y.rest}var E=new c;return f(E,E.head,m),l(m,E,y,E.head,0),function(x){for(var D=[],S=x.head.next;S!==x.tail;)D.push(S.value),S=S.next;return D}(E)},hooks:{all:{},add:function(m,y){var g=a.hooks.all;g[m]=g[m]||[],g[m].push(y)},run:function(m,y){var g=a.hooks.all[m];if(g&&g.length)for(var w,E=0;w=g[E++];)w(y)}},Token:u};function u(m,y,g,w){this.type=m,this.content=y,this.alias=g,this.length=0|(w||"").length}function s(m,y,g,w){m.lastIndex=y;var E=m.exec(g);if(E&&w&&E[1]){var x=E[1].length;E.index+=x,E[0]=E[0].slice(x)}return E}function l(m,y,g,w,E,x){for(var D in g)if(g.hasOwnProperty(D)&&g[D]){var S=g[D];S=Array.isArray(S)?S:[S];for(var k=0;k<S.length;++k){if(x&&x.cause==D+","+k)return;var F=S[k],H=F.inside,G=!!F.lookbehind,j=!!F.greedy,L=F.alias;if(j&&!F.pattern.global){var z=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,z+"g")}for(var K=F.pattern||F,X=w.next,nt=E;X!==y.tail&&!(x&&nt>=x.reach);nt+=X.value.length,X=X.next){var lt=X.value;if(y.length>m.length)return;if(!(lt instanceof u)){var st,ut=1;if(j){if(!(st=s(K,nt,m,G)))break;var B=st.index,A=st.index+st[0].length,N=nt;for(N+=X.value.length;B>=N;)N+=(X=X.next).value.length;if(nt=N-=X.value.length,X.value instanceof u)continue;for(var W=X;W!==y.tail&&(N<A||typeof W.value=="string");W=W.next)ut++,N+=W.value.length;ut--,lt=m.slice(nt,N),st.index-=nt}else if(!(st=s(K,0,lt,G)))continue;B=st.index;var $=st[0],q=lt.slice(0,B),at=lt.slice(B+$.length),vt=nt+lt.length;x&&vt>x.reach&&(x.reach=vt);var yt=X.prev;if(q&&(yt=f(y,yt,q),nt+=q.length),d(y,yt,ut),X=f(y,yt,new u(D,H?a.tokenize($,H):$,L,$)),at&&f(y,X,at),ut>1){var St={cause:D+","+k,reach:vt};l(m,y,g,X.prev,nt,St),x&&St.reach>x.reach&&(x.reach=St.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},y={value:null,prev:m,next:null};m.next=y,this.head=m,this.tail=y,this.length=0}function f(m,y,g){var w=y.next,E={value:g,prev:y,next:w};return y.next=E,w.prev=E,m.length++,E}function d(m,y,g){for(var w=y.next,E=0;E<g&&w!==m.tail;E++)w=w.next;y.next=w,w.prev=y,m.length-=E}if(r.Prism=a,u.stringify=function m(y,g){if(typeof y=="string")return y;if(Array.isArray(y)){var w="";return y.forEach(function(k){w+=m(k,g)}),w}var E={type:y.type,content:m(y.content,g),tag:"span",classes:["token",y.type],attributes:{},language:g},x=y.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(E.classes,x):E.classes.push(x)),a.hooks.run("wrap",E);var D="";for(var S in E.attributes)D+=" "+S+'="'+(E.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+D+">"+E.content+"</"+E.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(m){var y=JSON.parse(m.data),g=y.language,w=y.code,E=y.immediateClose;r.postMessage(a.highlight(w,a.languages[g],g)),E&&r.close()},!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;h==="loading"||h==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
163
+ * Prism: Lightweight, robust, elegant syntax highlighting
164
+ *
165
+ * @license MIT <https://opensource.org/licenses/MIT>
166
+ * @author Lea Verou <https://lea.verou.me>
167
+ * @namespace
168
+ * @public
169
+ */t.exports&&(t.exports=e),uy!==void 0&&(uy.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}u(c,d),u(l,d);var v=e.plugins.autoloader;v&&v.loadLanguages(d);var h=new XMLHttpRequest;h.open("GET",f,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?(l.setAttribute(n,"loaded"),c.textContent=h.responseText,e.highlightElement(c)):(l.setAttribute(n,"failed"),h.status>=400?c.textContent="✖ Error "+h.status+" while fetching file: "+h.statusText:c.textContent="✖ Error: File does not exist or is empty"))},h.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(A,N){return A.replace(/<<(\d+)>>/g,function(W,$){return"(?:"+N[+$]+")"})}function r(A,N,W){return RegExp(e(A,N),"")}function n(A,N){for(var W=0;W<N;W++)A=A.replace(/<<self>>/g,function(){return"(?:"+A+")"});return A.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(A){return"\\b(?:"+A.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),h=/@?\b[A-Za-z_]\w*\b/.source,m=e(/<<0>>(?:\s*<<1>>)?/.source,[h,p]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),g=/\[\s*(?:,\s*)*\]/.source,w=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,g]),E=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,g]),x=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),D=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,g]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,H=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[H]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(k),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[h,D]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[h]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[h]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,h]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[h]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[h,p]),inside:{function:r(/^<<0>>/.source,[h]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,h,D,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,v]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var G=F+"|"+k,j=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[G]),L=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,K=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,L]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,K]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[L]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var X=/:[^}\r\n]+/.source,nt=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[j]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nt,X]),st=n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[G]),2),ut=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,X]);function B(A,N){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[A]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[N,X]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:B(lt,nt)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ut]),lookbehind:!0,greedy:!0,inside:B(ut,st)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var h=v.content[1],m=v.content[3];if(h&&m&&h.type==="code-language"&&m.type==="code-block"&&typeof h.content=="string"){var y=h.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),g="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());m.alias?typeof m.alias=="string"?m.alias=[m.alias,g]:m.alias.push(g):m.alias=[g]}}else c(v.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var h=t.languages[c];if(h)l.content=t.highlight(function(y){var g=y.replace(a,"");return g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(w,E){var x;return(E=E.toLowerCase())[0]==="#"?(x=E[1]==="x"?parseInt(E.slice(2),16):Number(E.slice(1)),s(x)):u[E]||w})}(l.content),h,c);else if(c&&c!=="none"&&t.plugins.autoloader){var m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=m,t.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(m);y&&(y.innerHTML=t.highlight(y.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var Oyt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function bV(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,r){return e+bV(r)},0)}var vy,kyt=jt.String,fi=function(t){if(S8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kyt(t)},wV=function(){var t=Zn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},N8=jt.RegExp,j8=lr(function(){var t=N8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});j8||lr(function(){return!N8("a","y").sticky});var EV={BROKEN_CARET:j8||lr(function(){var t=N8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:j8},Byt=Po?Object.defineProperties:function(t,e){Zn(t);for(var r,n=dy(e),o=gy(e),i=o.length,a=0;i>a;)cy.f(t,r=o[a++],n[r]);return t},_yt=eh("document","documentElement"),CV=WM("IE_PROTO"),I8=function(){},xV=function(t){return"<script>"+t+"<\/script>"},SV=function(t){t.write(xV("")),t.close();var e=t.parentWindow.Object;return t=null,e},my=function(){try{vy=new ActiveXObject("htmlfile")}catch{}var t,e;my=typeof document<"u"?document.domain&&vy?SV(vy):((e=g8("iframe")).style.display="none",_yt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(xV("document.F=Object")),t.close(),t.F):SV(vy);for(var r=py.length;r--;)delete my.prototype[py[r]];return my()};C8[CV]=!0;var DV,L8,Fyt=Object.create||function(t,e){var r;return t!==null?(I8.prototype=Zn(t),r=new I8,I8.prototype=null,r[CV]=t):r=my(),e===void 0?r:Byt(r,e)},Tyt=jt.RegExp,Pyt=lr(function(){var t=Tyt(".","s");return!(t.dotAll&&t.exec(`
170
+ `)&&t.flags==="s")}),Nyt=jt.RegExp,jyt=lr(function(){var t=Nyt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Iyt=x8.get,Lyt=a8("native-string-replace",String.prototype.replace),yy=RegExp.prototype.exec,R8=yy,Ryt=Qt("".charAt),Myt=Qt("".indexOf),Vyt=Qt("".replace),M8=Qt("".slice),V8=(L8=/b*/g,cr(yy,DV=/a/,"a"),cr(yy,L8,"a"),DV.lastIndex!==0||L8.lastIndex!==0),AV=EV.BROKEN_CARET,z8=/()??/.exec("")[1]!==void 0;(V8||z8||AV||Pyt||jyt)&&(R8=function(t){var e,r,n,o,i,a,u,s=this,l=Iyt(s),c=fi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=cr(R8,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=AV&&s.sticky,v=cr(wV,s),h=s.source,m=0,y=c;if(p&&(v=Vyt(v,"y",""),Myt(v,"g")===-1&&(v+="g"),y=M8(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ryt(c,s.lastIndex-1)!==`
171
+ `)&&(h="(?: "+h+")",y=" "+y,m++),r=new RegExp("^(?:"+h+")",v)),z8&&(r=new RegExp("^"+h+"$(?!\\s)",v)),V8&&(n=s.lastIndex),o=cr(yy,p?r:s,y),p?o?(o.input=M8(o.input,m),o[0]=M8(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:V8&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),z8&&o&&o.length>1&&cr(Lyt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Fyt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var uh=R8;hy({target:"RegExp",proto:!0,forced:/./.exec!==uh},{exec:uh});var H8=Function.prototype,OV=H8.apply,zyt=H8.bind,kV=H8.call,Hyt=typeof Reflect=="object"&&Reflect.apply||(zyt?kV.bind(OV):function(){return kV.apply(OV,arguments)}),Uyt=_a("species"),U8=RegExp.prototype,Wyt=_a("match"),Gyt=jt.TypeError,qyt=_a("species"),Kyt=Qt("".charAt),BV=Qt("".charCodeAt),Yyt=Qt("".slice),Xyt=function(t){return function(e,r){var n,o,i=fi(sc(e)),a=k8(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=BV(i,a))<55296||n>56319||a+1===u||(o=BV(i,a+1))<56320||o>57343?t?Kyt(i,a):n:t?Yyt(i,a,a+2):o-56320+(n-55296<<10)+65536}},$yt=Xyt(!0),Zyt=function(t,e,r){return e+(r?$yt(t,e).length:1)},Jyt=jt.Array,Qyt=Math.max,_V=function(t,e,r){for(var n,o,i,a,u=B8(t),s=P8(e,u),l=P8(r===void 0?u:r,u),c=Jyt(Qyt(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=t[s],(a=m8(o))in n?cy.f(n,a,y8(0,i)):n[a]=i;return c.length=f,c},t1t=jt.TypeError,FV=function(t,e){var r=t.exec;if(Nr(r)){var n=cr(r,t,e);return n!==null&&Zn(n),n}if(Fa(t)==="RegExp")return cr(uh,t,e);throw t1t("RegExp#exec called on incompatible receiver")},dc=EV.UNSUPPORTED_Y,e1t=Math.min,TV=[].push,r1t=Qt(/./.exec),pc=Qt(TV),sh=Qt("".slice);(function(t,e,r,n){var o=_a(t),i=!lr(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!lr(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Uyt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Qt(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var h,m,y=fi(sc(this)),g=v===void 0?4294967295:v>>>0;if(g===0)return[];if(p===void 0)return[y];if(!ci(h=p)||!((m=h[Wyt])!==void 0?m:Fa(h)=="RegExp"))return cr(c,y,p,g);for(var w,E,x,D=[],S=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,F=new RegExp(p.source,S+"g");(w=cr(uh,F,y))&&!((E=F.lastIndex)>k&&(pc(D,sh(y,k,w.index)),w.length>1&&w.index<y.length&&Hyt(TV,D,_V(w,1)),x=w[0].length,k=E,D.length>=g));)F.lastIndex===w.index&&F.lastIndex++;return k===y.length?!x&&r1t(F,"")||pc(D,""):pc(D,sh(y,k)),D.length>g?_V(D,0,g):D}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:cr(c,this,p,v)}:c,[function(p,v){var h=sc(this),m=p==null?void 0:VM(p,l);return m?cr(m,p,h,v):cr(d,fi(h),p,v)},function(p,v){var h=Zn(this),m=fi(p),y=f(d,h,m,v,d!==c);if(y.done)return y.value;var g=function(L,z){var K,X=Zn(L).constructor;return X===void 0||(K=Zn(X)[qyt])==null?z:function(nt){if(oV(nt))return nt;throw Gyt(RM(nt)+" is not a constructor")}(K)}(h,RegExp),w=h.unicode,E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(dc?"g":"y"),x=new g(dc?"^(?:"+h.source+")":h,E),D=v===void 0?4294967295:v>>>0;if(D===0)return[];if(m.length===0)return FV(x,m)===null?[m]:[];for(var S=0,k=0,F=[];k<m.length;){x.lastIndex=dc?0:k;var H,G=FV(x,dc?sh(m,k):m);if(G===null||(H=e1t(tV(x.lastIndex+(dc?k:0)),m.length))===S)k=Zyt(m,k,w);else{if(pc(F,sh(m,S,k)),F.length===D)return F;for(var j=1;j<=G.length-1;j++)if(pc(F,G[j]),F.length===D)return F;k=S=H}}return pc(F,sh(m,S)),F}]}(o,""[t],function(l,c,f,d,p){var v=Qt(l),h=c.exec;return h===uh||h===U8.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});oh(String.prototype,t,s[0]),oh(U8,o,s[1])}n&&lc(U8[o],"sham",!0)})("split",0,!!lr(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),dc),hy({global:!0},{globalThis:jt}),vn&&(_.fn.attr=vn);var n1t=XM.PROPER,W8=RegExp.prototype,PV=W8.toString,o1t=Qt(wV),i1t=lr(function(){return PV.call({source:"a",flags:"b"})!="/a/b"}),a1t=n1t&&PV.name!="toString";(i1t||a1t)&&oh(RegExp.prototype,"toString",function(){var t=Zn(this),e=fi(t.source),r=t.flags;return"/"+e+"/"+fi(r===void 0&&LM(W8,t)&&!("flags"in W8)?o1t(t):r)},{unsafe:!0});var u1t=function(){function t(){this.title=tt("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;r.push({text:u,value:s})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);if(r==null||!ft.isElement(r))return"";var n=r.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===n})?n:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,r){if(this.getSelectCodeElem(e)!=null){var n={language:r.toString()};R.setNodes(e,n,{match:function(o){return O.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var r=O.getSelectedNodeByType(e,"code");if(r==null)return null;var n=O.getParentNode(e,r);return ft.isElement(n)?n.type!=="pre"?null:r:null},t}(),s1t={renderStyle:function(t,e){var r=t,n=e,o="";return Oyt.forEach(function(i){r[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(n,o="token "+o),n},parseStyleHtml:function(t,e,r){var n=_(t);if(!ft.isElement(e)||O.getNodeType(e)!=="code")return e;var o=e,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new u1t},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var r=t.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+e+"</code>"}}]},l1t=/"/g,c1t=Qt("".replace);hy({target:"String",proto:!0,forced:lr(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=fi(sc(this)),n="<a",(n+=' name="'+c1t(fi(e),l1t,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var NV=function(t){var e,r,n,o=function(y,g){var w=typeof Symbol=="function"&&y[Symbol.iterator];if(!w)return y;var E,x,D=w.call(y),S=[];try{for(;(g===void 0||g-- >0)&&!(E=D.next()).done;)S.push(E.value)}catch(k){x={error:k}}finally{try{E&&!E.done&&(w=D.return)&&w.call(D)}finally{if(x)throw x.error}}return S}(t,2),i=o[0],a=o[1],u=[],s=function(y){if(!it.isText(y))return null;var g=O.getParentNode(null,y);if(g&&O.getNodeType(g)==="code"){var w=O.getParentNode(null,g);if(w&&O.getNodeType(w)==="pre")return g}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(y,g){if(!g)return[];var w=yV.languages[g];return w?yV.tokenize(y.text,w):[]}(i,c),d=0;try{for(var p=function(y){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&y[g],E=0;if(w)return w.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&E>=y.length&&(y=void 0),{value:y&&y[E++],done:!y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=p.next();!v.done;v=p.next()){var h=v.value,m=d+bV(h);typeof h!="string"&&u.push(((n={})[h.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:m},n)),d=m}}catch(y){e={error:y}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return u},Be=function(){return Be=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Be.apply(this,arguments)},fr=function(){function t(){throw new Error(`不能实例化
172
+ Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Be(Be({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Be(Be({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Be(Be({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Be(Be({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=En(En({},u),o||{});if(Vf[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Vf[i]=a,function(l,c){c!=null&&(ik[l]=c)}(i,s)})(e,r)},t.registerRenderElem=function(e){(function(r){var n=r.type,o=r.renderElem;fB[n||""]=o})(e)},t.registerRenderStyle=function(e){(function(r){bE.push(r)})(e)},t.registerElemToHtml=function(e){(function(r){var n=r.type,o=r.elemToHtml;uk[n||""]=o})(e)},t.registerStyleToHtml=function(e){(function(r){Vw.push(r)})(e)},t.registerPreParseHtml=function(e){(function(r){Hk.push(r)})(e)},t.registerParseElemHtml=function(e){(function(r){var n=r.selector,o=r.parseElemHtml;g0[n]=o})(e)},t.registerParseStyleHtml=function(e){(function(r){iE.push(r)})(e)},t.registerModule=function(e){fs(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
173
+ Copyright (c) Microsoft Corporation.
174
+
175
+ Permission to use, copy, modify, and/or distribute this software for any
176
+ purpose with or without fee is hereby granted.
177
+
178
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
179
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
180
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
181
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
182
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
183
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
184
+ PERFORMANCE OF THIS SOFTWARE.
185
+ ***************************************************************************** */function fs(t){var e=t.menus,r=t.renderElems,n=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return fr.registerMenu(c)}),r&&r.forEach(function(c){return fr.registerRenderElem(c)}),n&&fr.registerRenderStyle(n),o&&o.forEach(function(c){return fr.registerElemToHtml(c)}),i&&fr.registerStyleToHtml(i),a&&a.forEach(function(c){return fr.registerPreParseHtml(c)}),u&&u.forEach(function(c){return fr.registerParseElemHtml(c)}),s&&fr.registerParseStyleHtml(s),l&&fr.registerPlugin(l)}vut.forEach(function(t){return fs(t)}),fs(Klt),fs(bdt),fs(Bgt),fs(wmt),fs(s1t);var jV='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',IV={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},f1t={hoverbarKeys:Be(Be({},IV),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};fr.setEditorConfig(Be(Be({},f1t),{decorate:NV}));var d1t={hoverbarKeys:IV};fr.setSimpleEditorConfig(Be(Be({},d1t),{decorate:NV}));var p1t={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:tt("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:tt("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:jV,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};fr.setToolbarConfig(p1t);var h1t={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:jV,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function g1t(t){t===void 0&&(t={});var e=t.selector,r=e===void 0?"":e,n=t.content,o=n===void 0?[]:n,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?fr.simpleEditorConfig:fr.editorConfig,c=Be(Be({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return mtt({selector:r,config:Be(Be(Be({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:fr.plugins})}function v1t(t){var e=t.selector,r=t.editor,n=t.config,o=n===void 0?{}:n,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?fr.simpleToolbarConfig:fr.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(m,y){return $k(m,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=En({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),h=new Ctt(f,v);return Ow.set(h,l),a0.set(l,h),h}(r,{selector:e,config:Be(Be({},u),o)});return s}fr.setSimpleToolbarConfig(h1t);var m1t=Object.defineProperty,y1t=Object.defineProperties,b1t=Object.getOwnPropertyDescriptors,LV=Object.getOwnPropertySymbols,w1t=Object.prototype.hasOwnProperty,E1t=Object.prototype.propertyIsEnumerable,RV=(t,e,r)=>e in t?m1t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,C1t=(t,e)=>{for(var r in e||(e={}))w1t.call(e,r)&&RV(t,r,e[r]);if(LV)for(var r of LV(e))E1t.call(e,r)&&RV(t,r,e[r]);return t},x1t=(t,e)=>y1t(t,b1t(e));function Pa(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
186
+ Please use '@${t}' event instead of props`,e}var MV=(t,e)=>{for(const[r,n]of e)t[r]=n;return t};const S1t=b.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const r=b.ref(null),n=b.shallowRef(null),o=b.ref(""),i=()=>{if(!r.value)return;const u=b.toRaw(t.defaultContent);g1t({selector:r.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:x1t(C1t({},t.defaultConfig),{onCreated(s){if(n.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Pa("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Pa("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Pa("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Pa("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Pa("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Pa("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Pa("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Pa("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=n.value;s!=null&&s.setHtml(u)}return b.onMounted(()=>{i()}),b.watch(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:r}}}),D1t={ref:"box",style:{height:"100%"}};function A1t(t,e,r,n,o,i){return b.openBlock(),b.createElementBlock("div",D1t,null,512)}var O1t=MV(S1t,[["render",A1t]]);const k1t=b.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=b.ref(null),r=n=>{if(e.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");O.getToolbar(n)||v1t({editor:n,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return b.watchEffect(()=>{const{editor:n}=t;n!=null&&r(n)}),{selector:e}}}),B1t={ref:"selector"};function _1t(t,e,r,n,o,i){return b.openBlock(),b.createElementBlock("div",B1t,null,512)}var F1t=MV(k1t,[["render",_1t]]);const T1t={class:"rich-text-editor"},by=no(b.defineComponent({__name:"RichTextEditor",props:{modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]},uploadImgServer:{default:""},uploadVideoServer:{default:""}},emits:["update:modelValue","change","focus","blur","created"],setup(t,{expose:e,emit:r}){const n=t,o=r,i=b.shallowRef(),a=b.ref(""),u=b.computed(()=>typeof n.height=="number"?`${n.height}px`:n.height),s={excludeKeys:n.excludeKeys,insertKeys:{index:0,keys:n.includeKeys}},l={placeholder:n.placeholder,readOnly:n.disabled,maxLength:n.maxLength,MENU_CONF:{uploadImage:{server:n.uploadImgServer,fieldName:"file",maxFileSize:5*1024*1024,allowedFileTypes:["image/*"],meta:{},headers:{},withCredentials:!1,timeout:30*1e3,onBeforeUpload(h){return console.log("onBeforeUpload",h),h},onProgress(h){console.log("onProgress",h)},onSuccess(h,m){console.log("onSuccess",h,m)},onFailed(h,m){console.log("onFailed",h,m)},onError(h,m){console.log("onError",h,m)}},uploadVideo:{server:n.uploadVideoServer,fieldName:"file",maxFileSize:50*1024*1024,allowedFileTypes:["video/*"],meta:{},headers:{},withCredentials:!1,timeout:60*1e3,onBeforeUpload(h){return console.log("onBeforeUpload video",h),h},onProgress(h){console.log("onProgress video",h)},onSuccess(h,m){console.log("onSuccess video",h,m)},onFailed(h,m){console.log("onFailed video",h,m)},onError(h,m){console.log("onError video",h,m)}}}};b.onBeforeUnmount(()=>{const h=i.value;h!=null&&h.destroy()}),b.watch(()=>n.modelValue,h=>{h!==a.value&&(a.value=h||"")},{immediate:!0});const c=h=>{i.value=h,o("created",h)},f=h=>{o("update:modelValue",a.value),o("change",h)},d=()=>{i.value=void 0},p=h=>{o("focus",h)},v=h=>{o("blur",h)};return e({editor:i,getHtml:()=>a.value,getText:()=>{var h;return((h=i.value)==null?void 0:h.getText())||""},isEmpty:()=>{var h;return((h=i.value)==null?void 0:h.isEmpty())||!0},clear:()=>{var h;return(h=i.value)==null?void 0:h.clear()},focus:()=>{var h;return(h=i.value)==null?void 0:h.focus()},blur:()=>{var h;return(h=i.value)==null?void 0:h.blur()},disable:()=>{var h;return(h=i.value)==null?void 0:h.disable()},enable:()=>{var h;return(h=i.value)==null?void 0:h.enable()}}),(h,m)=>(b.openBlock(),b.createElementBlock("div",T1t,[b.createVNode(b.unref(F1t),{class:"editor-toolbar",editor:i.value,defaultConfig:s,mode:h.mode},null,8,["editor","mode"]),b.createVNode(b.unref(O1t),{class:"editor-content",style:b.normalizeStyle({height:u.value}),modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=y=>a.value=y),defaultConfig:l,mode:h.mode,onOnCreated:c,onOnChange:f,onOnDestroyed:d,onOnFocus:p,onOnBlur:v},null,8,["style","modelValue","mode"])]))}}),[["__scopeId","data-v-760a12a3"]]),P1t={class:"setting-content"},N1t={class:"setting-header flex items-center"},j1t={class:"setting-header flex items-center"},I1t={class:"setting-body"},L1t={class:"item-name"},R1t={class:"item-action flex items-center"},M1t=["onClick"],V1t={class:"item-action flex items-center"},z1t=["onClick"],H1t={class:"item-action flex items-center"},U1t=["onClick"],W1t={class:"item-action flex items-center"},G1t=["onClick"],q1t=["src"],K1t={class:"item-uplaod flex items-center"},Y1t={class:"item-img-list"},X1t={key:0,class:"item-img-box"},$1t=["src"],Z1t={class:"item-right flex-1"},J1t=["onClick"],Q1t=["src"],tbt={class:"item-uplaod flex items-center"},ebt=["src"],rbt={class:"item-uplaod flex items-center"},nbt=no(b.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(t,{emit:e}){const r=t,n=e,o=()=>{n("update:show",!1)},i=v=>{const h=r.data;v==="Article"?h.data.push({id:ve(),type:"Article",data:{title:"",content:"",buttonList:[],linkList:[]}}):v==="Contact"?h.data.push({id:ve(),type:"Contact",data:{title:"",content:"",categories:[],linkList:[]}}):v==="Image"?h.data.push({id:ve(),type:"Image",data:{imgSrc:"",caption:"",alt:"",isRound:!1}}):v==="ImageList"?h.data.push({id:ve(),type:"ImageList",data:{imageList:[]}}):v==="Video"&&h.data.push({id:ve(),type:"Video",data:{videoSrc:"",imgSrc:""}})},a=v=>{v.push({id:ve(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1})},u=(v,h)=>{v.splice(v.findIndex(m=>m.id===h),1)},s=v=>{v.push({id:ve(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1})},l=(v,h)=>{v.splice(v.findIndex(m=>m.id===h),1)},c=v=>{v.push({id:ve(),text:"分类"})},f=(v,h)=>{v.splice(v.findIndex(m=>m.id===h),1)},d=v=>{v.push({id:ve(),src:""})},p=(v,h)=>{v.splice(v.findIndex(m=>m===h),1)};return(v,h)=>{const m=b.resolveComponent("a-option"),y=b.resolveComponent("a-select"),g=b.resolveComponent("icon-plus"),w=b.resolveComponent("a-button"),E=b.resolveComponent("a-button-group"),x=b.resolveComponent("a-input"),D=b.resolveComponent("icon-delete"),S=b.resolveComponent("a-checkbox"),k=b.resolveComponent("a-link"),F=b.resolveComponent("a-upload"),H=b.resolveComponent("icon-close-circle-fill"),G=b.resolveComponent("a-drawer");return b.openBlock(),b.createBlock(G,{width:500,visible:t.show,footer:!1,onCancel:o,unmountOnClose:""},{title:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(t.data.type)+"组件编辑 ",1)]),default:b.withCtx(()=>[b.createElementVNode("div",P1t,[b.createElementVNode("div",N1t,[h[11]||(h[11]=b.createElementVNode("span",{class:"header-title"},"组件宽度",-1)),b.createVNode(y,{modelValue:t.data.width,"onUpdate:modelValue":h[0]||(h[0]=j=>t.data.width=j),placeholder:"请选择","allow-clear":""},{default:b.withCtx(()=>[b.createVNode(m,{value:"default"},{default:b.withCtx(()=>h[7]||(h[7]=[b.createTextVNode("默认")])),_:1,__:[7]}),b.createVNode(m,{value:"small"},{default:b.withCtx(()=>h[8]||(h[8]=[b.createTextVNode("小")])),_:1,__:[8]}),b.createVNode(m,{value:"medium"},{default:b.withCtx(()=>h[9]||(h[9]=[b.createTextVNode("中")])),_:1,__:[9]}),b.createVNode(m,{value:"large"},{default:b.withCtx(()=>h[10]||(h[10]=[b.createTextVNode("大")])),_:1,__:[10]})]),_:1},8,["modelValue"])]),b.createElementVNode("div",j1t,[h[14]||(h[14]=b.createElementVNode("span",{class:"header-title"},"组件背景",-1)),b.createVNode(y,{modelValue:t.data.background,"onUpdate:modelValue":h[1]||(h[1]=j=>t.data.background=j),placeholder:"请选择","allow-clear":""},{default:b.withCtx(()=>[b.createVNode(m,{value:"white"},{default:b.withCtx(()=>h[12]||(h[12]=[b.createTextVNode("白色")])),_:1,__:[12]}),b.createVNode(m,{value:"grey"},{default:b.withCtx(()=>h[13]||(h[13]=[b.createTextVNode("灰色")])),_:1,__:[13]})]),_:1},8,["modelValue"])]),b.createVNode(E,{type:"primary"},{default:b.withCtx(()=>[b.createVNode(w,{size:"mini",onClick:h[2]||(h[2]=j=>i("Article"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[15]||(h[15]=b.createTextVNode(" Article "))]),_:1,__:[15]}),b.createVNode(w,{size:"mini",onClick:h[3]||(h[3]=j=>i("Contact"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[16]||(h[16]=b.createTextVNode(" Contact "))]),_:1,__:[16]}),b.createVNode(w,{size:"mini",onClick:h[4]||(h[4]=j=>i("Image"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[17]||(h[17]=b.createTextVNode(" Image "))]),_:1,__:[17]}),b.createVNode(w,{size:"mini",onClick:h[5]||(h[5]=j=>i("ImageList"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[18]||(h[18]=b.createTextVNode(" ImageList "))]),_:1,__:[18]}),b.createVNode(w,{size:"mini",onClick:h[6]||(h[6]=j=>i("Video"))},{icon:b.withCtx(()=>[b.createVNode(g)]),default:b.withCtx(()=>[h[19]||(h[19]=b.createTextVNode(" Video "))]),_:1,__:[19]})]),_:1}),b.createElementVNode("div",I1t,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(t.data.data,j=>(b.openBlock(),b.createElementBlock("div",{class:"setting-item",key:j.id},[b.createElementVNode("p",L1t,b.toDisplayString(j.type),1),j.type==="Article"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:0},[h[24]||(h[24]=b.createElementVNode("p",{class:"item-title"},"标题",-1)),b.createVNode(x,{modelValue:j.data.title,"onUpdate:modelValue":L=>j.data.title=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[25]||(h[25]=b.createElementVNode("p",{class:"item-title"},"内容",-1)),b.createVNode(b.unref(by),{modelValue:j.data.content,"onUpdate:modelValue":L=>j.data.content=L},null,8,["modelValue","onUpdate:modelValue"]),h[26]||(h[26]=b.createElementVNode("p",{class:"item-title"},"按钮",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.buttonList,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:z=>u(j.data.buttonList,L.id)},null,8,["onClick"]),b.createVNode(w,{type:"primary"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",R1t,[b.createVNode(x,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":z=>L.text=z,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{modelValue:L.url,"onUpdate:modelValue":z=>L.url=z,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(S,{"model-value":L.isExternal},{default:b.withCtx(()=>h[20]||(h[20]=[b.createTextVNode("是否外部链接")])),_:2,__:[20]},1032,["model-value"])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>a(j.data.buttonList)},[b.createVNode(g),h[21]||(h[21]=b.createElementVNode("span",{class:"btn-text"},"添加按钮",-1))],8,M1t),h[27]||(h[27]=b.createElementVNode("p",{class:"item-title"},"链接",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.linkList,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:z=>l(j.data.linkList,L.id)},null,8,["onClick"]),b.createVNode(k,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",V1t,[b.createVNode(x,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":z=>L.text=z,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{modelValue:L.url,"onUpdate:modelValue":z=>L.url=z,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(S,{"model-value":L.isExternal},{default:b.withCtx(()=>h[22]||(h[22]=[b.createTextVNode("是否外部链接")])),_:2,__:[22]},1032,["model-value"])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>s(j.data.linkList)},[b.createVNode(g),h[23]||(h[23]=b.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,z1t)],64)):b.createCommentVNode("",!0),j.type==="Contact"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:1},[h[31]||(h[31]=b.createElementVNode("p",{class:"item-title"},"标题",-1)),b.createVNode(x,{modelValue:j.data.title,"onUpdate:modelValue":L=>j.data.title=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),h[32]||(h[32]=b.createElementVNode("p",{class:"item-title"},"内容",-1)),b.createVNode(b.unref(by),{modelValue:j.data.content,"onUpdate:modelValue":L=>j.data.content=L},null,8,["modelValue","onUpdate:modelValue"]),h[33]||(h[33]=b.createElementVNode("p",{class:"item-title"},"分类",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.categories,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:z=>f(j.data.categories,L.id)},null,8,["onClick"]),b.createVNode(k,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",H1t,[b.createVNode(x,{modelValue:L.text,"onUpdate:modelValue":z=>L.text=z,placeholder:"分类名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>c(j.data.categories)},[b.createVNode(g),h[28]||(h[28]=b.createElementVNode("span",{class:"btn-text"},"添加分类",-1))],8,U1t),h[34]||(h[34]=b.createElementVNode("p",{class:"item-title"},"链接",-1)),(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.linkList,L=>(b.openBlock(),b.createElementBlock("div",{class:"item-button",key:L.id},[b.createVNode(D,{class:"btn-delete",onClick:z=>l(j.data.linkList,L.id)},null,8,["onClick"]),b.createVNode(k,{href:"link"},{default:b.withCtx(()=>[b.createTextVNode(b.toDisplayString(L.text),1)]),_:2},1024),b.createElementVNode("div",W1t,[b.createVNode(x,{class:"action-text",modelValue:L.text,"onUpdate:modelValue":z=>L.text=z,placeholder:"按钮文本","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{modelValue:L.url,"onUpdate:modelValue":z=>L.url=z,placeholder:"按钮链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])]),b.createVNode(S,{"model-value":L.isExternal},{default:b.withCtx(()=>h[29]||(h[29]=[b.createTextVNode("是否外部链接")])),_:2,__:[29]},1032,["model-value"])]))),128)),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>s(j.data.linkList)},[b.createVNode(g),h[30]||(h[30]=b.createElementVNode("span",{class:"btn-text"},"添加链接",-1))],8,G1t)],64)):b.createCommentVNode("",!0),j.type==="Image"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:2},[b.createElementVNode("img",{class:"item-img",src:j.data.imgSrc},null,8,q1t),b.createElementVNode("div",K1t,[b.createVNode(x,{modelValue:j.data.imgSrc,"onUpdate:modelValue":L=>j.data.imgSrc=L,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{class:"fit-content","show-file-list":!1,action:"/"})]),b.createVNode(x,{class:"mt-10",modelValue:j.data.caption,"onUpdate:modelValue":L=>j.data.caption=L,placeholder:"图片描述","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(x,{class:"mt-10",modelValue:j.data.alt,"onUpdate:modelValue":L=>j.data.alt=L,placeholder:"图片alt","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(S,{class:"pt-10","model-value":j.data.isRound},{default:b.withCtx(()=>h[35]||(h[35]=[b.createTextVNode("圆角")])),_:2,__:[35]},1032,["model-value"])],64)):b.createCommentVNode("",!0),j.type==="ImageList"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:3},[h[37]||(h[37]=b.createElementVNode("p",{class:"item-title"},"图片组",-1)),b.createElementVNode("div",Y1t,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(j.data.imageList,L=>(b.openBlock(),b.createElementBlock("div",{class:"img-list-item flex",key:L.id},[L.src?(b.openBlock(),b.createElementBlock("div",X1t,[b.createVNode(H,{class:"item-img-dlete",onClick:z=>p(j.data.imageList,L.id)},null,8,["onClick"]),b.createElementVNode("img",{class:"item-img small-img",src:L.src},null,8,$1t)])):b.createCommentVNode("",!0),b.createElementVNode("div",Z1t,[b.createVNode(x,{style:{"margin-bottom":"12px"},modelValue:L.src,"onUpdate:modelValue":z=>L.src=z,placeholder:"请输入图片路径","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{"show-file-list":!1,action:"/"})])]))),128))]),b.createElementVNode("div",{class:"item-add-btn flex items-center",onClick:L=>d(j.data.imageList)},[b.createVNode(g),h[36]||(h[36]=b.createElementVNode("span",{class:"btn-text"},"添加图片",-1))],8,J1t)],64)):b.createCommentVNode("",!0),j.type==="Video"?(b.openBlock(),b.createElementBlock(b.Fragment,{key:4},[h[38]||(h[38]=b.createElementVNode("p",{class:"item-title"},"视频",-1)),b.createElementVNode("video",{class:"item-img",src:j.data.videoSrc,controls:""},null,8,Q1t),b.createElementVNode("div",tbt,[b.createVNode(x,{modelValue:j.data.videoSrc,"onUpdate:modelValue":L=>j.data.videoSrc=L,placeholder:"请输入视频链接","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{class:"fit-content","show-file-list":!1,action:"/"})]),b.createElementVNode("img",{class:"item-img",src:j.data.imgSrc},null,8,ebt),b.createElementVNode("div",rbt,[b.createVNode(x,{modelValue:j.data.imgSrc,"onUpdate:modelValue":L=>j.data.imgSrc=L,placeholder:"视频封面","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),b.createVNode(F,{class:"fit-content","show-file-list":!1,action:"/"})])],64)):b.createCommentVNode("",!0)]))),128))])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-741a0180"]]),obt={class:"operate-page"},ibt={class:"operate-btn flex justify-end"},abt=no(b.defineComponent({__name:"index",props:{show:{type:Boolean,default:!1}},emits:["handleCopy","handleDelete","handleEdit"],setup(t,{emit:e}){const r=e,n=()=>{r("handleCopy")},o=()=>{r("handleDelete")},i=()=>{r("handleEdit")};return(a,u)=>{const s=b.resolveComponent("icon-copy"),l=b.resolveComponent("icon-delete"),c=b.resolveComponent("icon-edit");return b.withDirectives((b.openBlock(),b.createElementBlock("div",obt,[b.createElementVNode("div",ibt,[b.createElementVNode("div",{class:"btn-item btn-copy flex items-center",onClick:n},[b.createVNode(s),u[0]||(u[0]=b.createElementVNode("span",{class:"btn-text"},"复制",-1))]),b.createElementVNode("div",{class:"btn-item btn-delete flex items-center",onClick:o},[b.createVNode(l),u[1]||(u[1]=b.createElementVNode("span",{class:"btn-text"},"删除",-1))]),b.createElementVNode("div",{class:"btn-item btn-edit flex items-center",onClick:i},[b.createVNode(c),u[2]||(u[2]=b.createElementVNode("span",{class:"btn-text"},"编辑",-1))])])],512)),[[b.vShow,t.show]])}}}),[["__scopeId","data-v-5213869a"]]),ubt={class:"article-list-left"},sbt={class:"article-list-right"},G8=no(b.defineComponent({name:"ArticleList",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!1}},emits:["update:modelValue","handleDelete","handleCopy"],setup(t,{emit:e}){const r=t,n=e,o=b.computed(()=>r.modelValue&&r.modelValue.data&&r.modelValue.data.length?r.modelValue.data.some(c=>c.type==="Image"||c.type==="Video"||c.type==="ImageList"):!1),i=()=>{if(r.modelValue&&r.modelValue.id)return;const c={id:ve(),type:"ArticleList",isPreview:!1,width:"",background:"",data:[{id:ve(),type:"Article",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",buttonList:[{id:ve(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}],linkList:[{id:ve(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:ve(),type:"Image",data:{imgSrc:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg",caption:"",alt:"",isRound:!1}},{id:ve(),type:"Contact",data:{title:"这里是标题",content:"耀华国际教育学校浙江桐乡校区成立于 2017 年,先进的校园设施确保学 生在安全友好的环境中学习。学校坐落于高桥镇,提供从幼儿阶段至高中 阶段 (K2 至13 年级) 的教育服务,招收2 岁至18 岁本地和外籍学生。",categories:[{id:ve(),text:"分类1"}],linkList:[{id:ve(),text:"查看更多",url:"https://www.baidu.com",isExternal:!1}]}},{id:ve(),type:"ImageList",data:{imageList:[{id:ve(),src:"https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"}]}},{id:ve(),type:"Video",data:{videoSrc:"http://mpv.videocc.net/4b964bbdf4/3/4b964bbdf481505df84cfd703c4b3043_2.mp4",imgSrc:"https://object.ycyw.com/media-library/ycyw-edu/news/20250628%20HKDSE%20Forum/Cover.jpg"}}]};n("update:modelValue",c)},a=b.ref(!1),u=b.ref(!1),s=()=>{n("handleDelete",r.modelValue.id)},l=()=>{n("handleCopy",r.modelValue)};return i(),(c,f)=>{const d=b.resolveComponent("a-col"),p=b.resolveComponent("a-row");return b.openBlock(),b.createElementBlock(b.Fragment,null,[b.createVNode(p,{class:"article-list",onMouseenter:f[2]||(f[2]=v=>a.value=!0),onMouseleave:f[3]||(f[3]=v=>a.value=!1)},{default:b.withCtx(()=>[b.createVNode(d,{sm:{span:24},md:{span:o.value?12:24}},{default:b.withCtx(()=>{var v;return[b.createElementVNode("div",ubt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((v=t.modelValue)==null?void 0:v.data,h=>(b.openBlock(),b.createElementBlock(b.Fragment,{key:h.id},[h.type==="Article"?(b.openBlock(),b.createBlock(rz,{key:0,article:h.data},null,8,["article"])):b.createCommentVNode("",!0),h.type==="Contact"?(b.openBlock(),b.createBlock(sz,{key:1,contact:h.data},null,8,["contact"])):b.createCommentVNode("",!0)],64))),128))])]}),_:1},8,["md"]),o.value?(b.openBlock(),b.createBlock(d,{key:0,sm:{span:24},md:{span:12}},{default:b.withCtx(()=>{var v;return[b.createElementVNode("div",sbt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList((v=t.modelValue)==null?void 0:v.data,h=>(b.openBlock(),b.createBlock(bz,{key:h.id,type:h.type,data:h.data,preview:t.modelValue.isPreview},null,8,["type","data","preview"]))),128))])]}),_:1})):b.createCommentVNode("",!0),b.createVNode(abt,{show:a.value,"onUpdate:show":f[0]||(f[0]=v=>a.value=v),onHandleEdit:f[1]||(f[1]=v=>u.value=!0),onHandleDelete:s,onHandleCopy:l},null,8,["show"])]),_:1}),b.createVNode(nbt,{show:u.value,"onUpdate:show":f[4]||(f[4]=v=>u.value=v),data:t.modelValue},null,8,["show","data"])],64)}}}),[["__scopeId","data-v-67fab774"]]),lbt={class:"hero-slide"},cbt={class:"slide-container"},fbt={key:0,class:"slide-indicators"},dbt=["onClick"],q8=no(b.defineComponent({name:"HeroSlide",__name:"index",props:{autoPlayInterval:{default:3e3},showIndicators:{type:Boolean,default:!0},autoPlay:{type:Boolean,default:!0}},emits:["change","click"],setup(t,{emit:e}){const r=t,n=e,o=b.ref(0),i=b.ref([{title:"轮播图标题 1",description:"这是第一张轮播图的描述内容"},{title:"轮播图标题 2",description:"这是第二张轮播图的描述内容"},{title:"轮播图标题 3",description:"这是第三张轮播图的描述内容"}]);let a=null;const u=f=>{o.value=f,n("change",f)},s=()=>{o.value=(o.value+1)%i.value.length,n("change",o.value)},l=()=>{r.autoPlay&&(a=window.setInterval(s,r.autoPlayInterval))},c=()=>{a&&(clearInterval(a),a=null)};return b.onMounted(()=>{l()}),b.onUnmounted(()=>{c()}),(f,d)=>(b.openBlock(),b.createElementBlock("div",lbt,[b.createElementVNode("div",cbt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(i.value,(p,v)=>(b.openBlock(),b.createElementBlock("div",{key:v,class:b.normalizeClass(["slide-item",{active:o.value===v}])},[b.createElementVNode("h2",null,b.toDisplayString(p.title),1),b.createElementVNode("p",null,b.toDisplayString(p.description),1)],2))),128))]),f.showIndicators?(b.openBlock(),b.createElementBlock("div",fbt,[(b.openBlock(!0),b.createElementBlock(b.Fragment,null,b.renderList(i.value,(p,v)=>(b.openBlock(),b.createElementBlock("span",{key:v,class:b.normalizeClass(["indicator",{active:o.value===v}]),onClick:h=>u(v)},null,10,dbt))),128))])):b.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-4198d280"]]),K8={default:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},dark:{primaryColor:"#60a5fa",secondaryColor:"#c084fc",fontSize:"14px",fontFamily:"Inter, sans-serif",borderRadius:"6px",spacing:"16px"},compact:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"12px",fontFamily:"Inter, sans-serif",borderRadius:"4px",spacing:"12px"},large:{primaryColor:"#3b82f6",secondaryColor:"#a855f7",fontSize:"16px",fontFamily:"Inter, sans-serif",borderRadius:"8px",spacing:"20px"}},Yr=b.ref(K8.default),No=b.ref(!1);function VV(){const t=v=>{typeof v=="string"?Yr.value={...K8[v]}:Yr.value={...v},n()},e=v=>{Yr.value={...Yr.value,...v},n()},r=()=>{No.value=!No.value,document.documentElement.classList.toggle("dark",No.value)},n=()=>{const v=document.documentElement,h=Yr.value;v.style.setProperty("--theme-primary",h.primaryColor),v.style.setProperty("--theme-secondary",h.secondaryColor),v.style.setProperty("--font-size-default",h.fontSize),v.style.setProperty("--font-family-sans",h.fontFamily),v.style.setProperty("--radius-md",h.borderRadius),v.style.setProperty("--spacing-md",h.spacing)},o=v=>b.computed(()=>v==="primary"?Yr.value.primaryColor:Yr.value.secondaryColor),i=()=>b.computed(()=>Yr.value.fontSize),a=()=>b.computed(()=>Yr.value.fontFamily),u=()=>b.computed(()=>Yr.value.borderRadius),s=()=>b.computed(()=>Yr.value.spacing),l=()=>{t("default"),No.value=!1,document.documentElement.classList.remove("dark")},c=()=>JSON.stringify(Yr.value,null,2),f=v=>{try{const h=JSON.parse(v);return t(h),!0}catch(h){return console.error("Invalid theme configuration:",h),!1}},d=()=>{const v=localStorage.getItem("officialblock-theme"),h=localStorage.getItem("officialblock-dark-mode");if(v)try{const g=JSON.parse(v);t(g)}catch(g){console.error("Failed to restore theme:",g)}h&&(No.value=h==="true",document.documentElement.classList.toggle("dark",No.value));const m=window.matchMedia("(prefers-color-scheme: dark)"),y=g=>{localStorage.getItem("officialblock-dark-mode")||(No.value=g.matches,document.documentElement.classList.toggle("dark",No.value))};m.addEventListener("change",y),n()},p=()=>{localStorage.setItem("officialblock-theme",JSON.stringify(Yr.value)),localStorage.setItem("officialblock-dark-mode",No.value.toString())};return{currentTheme:b.computed(()=>Yr.value),isDarkMode:b.computed(()=>No.value),themePresets:K8,setTheme:t,updateTheme:e,toggleDarkMode:r,resetTheme:l,exportTheme:c,importTheme:f,initTheme:d,saveTheme:p,getThemeColor:o,getFontSize:i,getFontFamily:a,getBorderRadius:u,getSpacing:s}}class zV{static hexToRgb(e){const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}static rgbToHex(e,r,n){return"#"+((1<<24)+(e<<16)+(r<<8)+n).toString(16).slice(1)}static adjustBrightness(e,r){const n=this.hexToRgb(e);if(!n)return e;const o=i=>{const a=Math.round(i*(1+r/100));return Math.max(0,Math.min(255,a))};return this.rgbToHex(o(n.r),o(n.g),o(n.b))}static generateColorScale(e){const r=[50,100,200,300,400,500,600,700,800,900,950],n={};return r.forEach((o,i)=>{let a;o<=500?a=80-i*16:a=-20-(i-5)*12,n[o.toString()]=this.adjustBrightness(e,a)}),n}static getContrastRatio(e,r){const n=s=>{const l=this.hexToRgb(s);if(!l)return 0;const c=f=>{const d=f/255;return d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)};return .2126*c(l.r)+.7152*c(l.g)+.0722*c(l.b)},o=n(e),i=n(r),a=Math.max(o,i),u=Math.min(o,i);return(a+.05)/(u+.05)}static isDarkColor(e){const r=this.hexToRgb(e);return r?(r.r*299+r.g*587+r.b*114)/1e3<128:!1}static getBestTextColor(e){return this.isDarkColor(e)?"#ffffff":"#000000"}static mixColors(e,r,n=.5){const o=this.hexToRgb(e),i=this.hexToRgb(r);if(!o||!i)return e;const a=(u,s)=>Math.round(u*(1-n)+s*n);return this.rgbToHex(a(o.r,i.r),a(o.g,i.g),a(o.b,i.b))}}class pbt{static getCurrentBreakpoint(){const e=window.innerWidth;return e<475?"xs":e<640?"sm":e<768?"md":e<1024?"lg":e<1280?"xl":"2xl"}static isMobile(){return window.innerWidth<768}static isTablet(){const e=window.innerWidth;return e>=768&&e<1024}static isDesktop(){return window.innerWidth>=1024}static onBreakpointChange(e){let r=this.getCurrentBreakpoint();const n=()=>{const o=this.getCurrentBreakpoint();o!==r&&(r=o,e(o))};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}}}class HV{static animate(e,r,n,o,i=this.easing.easeOutQuad){const a=performance.now();let u;const s=l=>{const c=l-a,f=Math.min(c/n,1),d=i(f),p=e+(r-e)*d;o(p),f<1&&(u=requestAnimationFrame(s))};return u=requestAnimationFrame(s),()=>{u&&cancelAnimationFrame(u)}}static scrollTo(e,r,n=300,o=this.easing.easeOutQuad){return new Promise(i=>{const a=e===window,u=a?window.pageYOffset:e.scrollTop;this.animate(u,r,n,s=>{a?window.scrollTo(0,s):e.scrollTop=s},o),setTimeout(i,n)})}}qV(HV,"easing",{linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:-1+(4-2*e)*e,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1});class hbt{static setItem(e,r){try{return localStorage.setItem(e,JSON.stringify(r)),!0}catch(n){return console.warn("Failed to save to localStorage:",n),!1}}static getItem(e,r){try{const n=localStorage.getItem(e);return n?JSON.parse(n):r||null}catch(n){return console.warn("Failed to read from localStorage:",n),r||null}}static removeItem(e){try{return localStorage.removeItem(e),!0}catch(r){return console.warn("Failed to remove from localStorage:",r),!1}}static cleanExpired(){const e=Date.now(),r=[];for(let n=0;n<localStorage.length;n++){const o=localStorage.key(n);if(o&&o.startsWith("officialblock-"))try{const i=JSON.parse(localStorage.getItem(o)||"{}");i.expires&&i.expires<e&&r.push(o)}catch{}}r.forEach(n=>localStorage.removeItem(n))}}const gbt={class:"theme-preview"},vbt={class:"preview-content"},mbt={class:"color-preview"},ybt={class:"color-swatches"},bbt={class:"typography-preview"},wbt={class:"font-samples"},Ebt={class:"component-preview"},Cbt={class:"component-samples"},xbt={class:"sample-group"},Sbt={class:"button-group"},Dbt={class:"sample-group"},Abt={class:"sample-group"},Obt={class:"sample-group"},kbt={class:"tag-group"},Bbt={class:"layout-preview"},_bt={class:"item-header"},Fbt={class:"item-info"},Tbt={class:"item-content"},UV=no(b.defineComponent({__name:"ThemePreview",setup(t){const{currentTheme:e}=VV(),r=n=>zV.getBestTextColor(n);return(n,o)=>(b.openBlock(),b.createElementBlock("div",gbt,[o[12]||(o[12]=b.createElementVNode("div",{class:"preview-header"},[b.createElementVNode("h3",null,"主题预览"),b.createElementVNode("p",null,"实时预览当前主题效果")],-1)),b.createElementVNode("div",vbt,[b.createElementVNode("div",mbt,[o[3]||(o[3]=b.createElementVNode("h4",null,"颜色系统",-1)),b.createElementVNode("div",ybt,[b.createElementVNode("div",{class:"color-swatch primary",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor})},[b.createElementVNode("span",{style:b.normalizeStyle({color:r(b.unref(e).primaryColor)})}," Primary ",4)],4),b.createElementVNode("div",{class:"color-swatch secondary",style:b.normalizeStyle({backgroundColor:b.unref(e).secondaryColor})},[b.createElementVNode("span",{style:b.normalizeStyle({color:r(b.unref(e).secondaryColor)})}," Secondary ",4)],4),o[0]||(o[0]=b.createElementVNode("div",{class:"color-swatch success"},[b.createElementVNode("span",null,"Success")],-1)),o[1]||(o[1]=b.createElementVNode("div",{class:"color-swatch warning"},[b.createElementVNode("span",null,"Warning")],-1)),o[2]||(o[2]=b.createElementVNode("div",{class:"color-swatch error"},[b.createElementVNode("span",null,"Error")],-1))])]),b.createElementVNode("div",bbt,[o[5]||(o[5]=b.createElementVNode("h4",null,"字体系统",-1)),b.createElementVNode("div",wbt,[b.createElementVNode("div",{class:"font-sample",style:b.normalizeStyle({fontSize:b.unref(e).fontSize,fontFamily:b.unref(e).fontFamily})},[b.createElementVNode("strong",null,"默认字体 ("+b.toDisplayString(b.unref(e).fontSize)+")",1),o[4]||(o[4]=b.createElementVNode("p",null,"这是使用当前主题字体设置的示例文本。The quick brown fox jumps over the lazy dog.",-1))],4)])]),b.createElementVNode("div",Ebt,[o[10]||(o[10]=b.createElementVNode("h4",null,"组件预览",-1)),b.createElementVNode("div",Cbt,[b.createElementVNode("div",xbt,[o[6]||(o[6]=b.createElementVNode("label",null,"按钮",-1)),b.createElementVNode("div",Sbt,[b.createElementVNode("button",{class:"btn btn-primary",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 主要按钮 ",4),b.createElementVNode("button",{class:"btn btn-secondary",style:b.normalizeStyle({backgroundColor:b.unref(e).secondaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 次要按钮 ",4),b.createElementVNode("button",{class:"btn btn-outline",style:b.normalizeStyle({borderColor:b.unref(e).primaryColor,color:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize})}," 轮廓按钮 ",4)])]),b.createElementVNode("div",Dbt,[o[7]||(o[7]=b.createElementVNode("label",null,"卡片",-1)),b.createElementVNode("div",{class:"card-sample",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("h5",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 1.2)`})}," 卡片标题 ",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})}," 这是一个卡片组件的预览示例,展示了当前主题的样式效果。 ",4)],4)]),b.createElementVNode("div",Abt,[o[8]||(o[8]=b.createElementVNode("label",null,"输入框",-1)),b.createElementVNode("input",{type:"text",class:"input-sample",placeholder:"输入框示例",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,fontSize:b.unref(e).fontSize,padding:`calc(${b.unref(e).spacing} * 0.5) ${b.unref(e).spacing}`})},null,4)]),b.createElementVNode("div",Obt,[o[9]||(o[9]=b.createElementVNode("label",null,"标签",-1)),b.createElementVNode("div",kbt,[b.createElementVNode("span",{class:"tag tag-primary",style:b.normalizeStyle({backgroundColor:`${b.unref(e).primaryColor}20`,color:b.unref(e).primaryColor,borderRadius:`calc(${b.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${b.unref(e).fontSize} * 0.875)`,padding:`calc(${b.unref(e).spacing} * 0.25) calc(${b.unref(e).spacing} * 0.5)`})}," 主要标签 ",4),b.createElementVNode("span",{class:"tag tag-secondary",style:b.normalizeStyle({backgroundColor:`${b.unref(e).secondaryColor}20`,color:b.unref(e).secondaryColor,borderRadius:`calc(${b.unref(e).borderRadius} * 0.5)`,fontSize:`calc(${b.unref(e).fontSize} * 0.875)`,padding:`calc(${b.unref(e).spacing} * 0.25) calc(${b.unref(e).spacing} * 0.5)`})}," 次要标签 ",4)])])])]),b.createElementVNode("div",Bbt,[o[11]||(o[11]=b.createElementVNode("h4",null,"布局预览",-1)),b.createElementVNode("div",{class:"layout-sample",style:b.normalizeStyle({gap:b.unref(e).spacing})},[b.createElementVNode("div",{class:"layout-item",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("div",_bt,[b.createElementVNode("div",{class:"item-avatar",style:b.normalizeStyle({backgroundColor:b.unref(e).primaryColor,borderRadius:b.unref(e).borderRadius})},null,4),b.createElementVNode("div",Fbt,[b.createElementVNode("h6",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})},"用户名称",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 0.875)`})}," 用户描述信息 ",4)])])],4),b.createElementVNode("div",{class:"layout-item",style:b.normalizeStyle({borderRadius:b.unref(e).borderRadius,padding:b.unref(e).spacing})},[b.createElementVNode("div",Tbt,[b.createElementVNode("h6",{style:b.normalizeStyle({fontSize:b.unref(e).fontSize})},"内容标题",4),b.createElementVNode("p",{style:b.normalizeStyle({fontSize:`calc(${b.unref(e).fontSize} * 0.875)`})}," 这是一段示例内容,用于展示当前主题的布局效果。 ",4)])],4)],4)])])]))}}),[["__scopeId","data-v-8a4e29bd"]]),Pbt={install:t=>{t.component("ArticleList",G8)}},Nbt={install:t=>{t.component("HeroSlide",q8)}},jbt={install:t=>{t.component("ArticleList",G8),t.component("HeroSlide",q8),t.component("RichTextEditor",by),t.component("ThemePreview",UV)}};Ce.AnimationUtils=HV,Ce.ArticleList=G8,Ce.ArticleListPlugin=Pbt,Ce.HeroSlide=q8,Ce.HeroSlidePlugin=Nbt,Ce.ResponsiveUtils=pbt,Ce.RichTextEditor=by,Ce.StorageUtils=hbt,Ce.ThemePreview=UV,Ce.ThemeUtils=zV,Ce.default=jbt,Ce.useTheme=VV,Object.defineProperties(Ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});